How about removing more than 1 elements by indices? Is there a faster way than looping ?
For example
i = [0,100,2,5,10, 200,500]
T =torch.randn(1000)

T_new =  T [whose elements not equal to elements in i]

I want to get the T_new without looping over i…