Hi,
Suppose these is one 2d tensor:
ten = torch.randn(4, 5)

Now I need to remove one element from each row of that tensor according to another tensor:
ids = torch.tensor([2, 1, 4, 1])

which means that remove the ten[0, 2], ten[1, 1], ten[2, 4], ten[3, 1]from the tensor, and results in a4 x 4` tensor. How could I do this please ?