x = tf.constant([[2.0,9.0],[7.0,5.0],[0.0,0.0]]) y = tf.constant([1,0,1]) tf.nn.in_top_k(x,y,1).eval() Out : array([ True, True, True], dtype=bool) why not output array([ True, True, False], dtype=bool)
x = tf.constant([[2.0,9.0],[7.0,5.0],[0.0,0.0]])
y = tf.constant([1,0,1])
tf.nn.in_top_k(x,y,1).eval()
Out : array([ True, True, True], dtype=bool)
why not output array([ True, True, False], dtype=bool)