xxxxxxxxxx
## tensorflow 1.x
import tensorflow as tf
a = tf.constant([False,False,True,False,True],dtype=tf.bool)
b = tf.where(a)
sess = tf.Session()
print(sess.run(b))
## tensorflow 2.x
import tensorflow as tf
a = tf.constant([False,False,True,False,True],dtype=tf.bool)
b = tf.where(a)
print(b)
# have a great day ! ~