sess = tf.InteractiveSession()
t = tf.expand_dims(tf.constant(list(range(9))), axis=1)
tf.where(t == 5).eval()
InvalidArgumentError (see above for traceback): WhereOp : Unhandled input dimensions: 0
[[Node: Where_16 = Where[T=DT_BOOL, _device="/job:localhost/replica:0/task:0/device:CPU:0"](Where_16/condition)]]
Что здесь происходит? Соответствующий код в Numpy с np.where работает.