I have a TensorFlow question about building TF array given a list of indices of its elements.
Say I have an index list with tf array
list_index_false = tf.constant([5,3])
I would like to build size 7 tf.array with booleans
where only indices 5 and 3 are False while others are True such as below:
[True,True,True,False,True,False,True]
I tried following:
list_boolean=tf.fill([7],True))
Then tried to assign list_boolean[3]=False, list_boolean[5]=False, but tensorflow doesn't let me to assign. :(
How can I do that? Any other way?
Thank you