I would like to select the rows which are not indexed by a indexing list, such as:
x = torch.randn(10)
indexing_list = torch.LongTensor([2,5])
x[-indexing_list] # What I want to do: remove out rows which are not indexed, thus there remains 8 items
anyone has a good idea?
BTW, is it faster to use LongTensor as an indexing list or maybe just same as np.array and primitive list?