I'm looking for an easy way to remove a set of tensors from a current tensor in Tensorflow and I'm having a difficult reasonable solution.
For example, let's say that I have the below current tensor:
a = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[2, 3], name='a')
And that I want to remove, say, two items from this tensor (2.0 and 5.0).
What would be the best way to transform this tensor into [1.0, 3.0, 4.0, 6.0] after it has been created?
Many thanks in advance.