I have a tensor say t = [1, 2, 3, 4, 5, 6, 7, 8, 9] and a list of indices I want to remove like d = [0, 2, 5].
Doing t[d] gives me the subtensor with the elements I want to remove.
How can I used d to get the subtensor with all the elements except the ones indexed in d. There must be something like t[~d], right?
Something like numpy's numpy.delete.