I have a tensor a of type tf.int64. I want to filter out this tensor on the basis of a given python list.
For example -
l = [1,2,3]
a = tf.constant([1,2,3,4], dtype=tf.int64)
Need a tensor with values 1,2,3 except 4. That is filtering out a on the basis of l. How can I do this in TensorFlow?