I need to compare two arrays and get either true or false,not elementwise result. My code is
X = tf.constant([0.05, 0.10], dtype=tf.float32, shape=[1, 2])
y = tf.constant([0.01, 0.99], dtype=tf.float32, shape=[1, 2])
equality = tf.equal(X, y)
prints [False, False]
my requirement is to get true or false, not an array.