For example, I have a tensor
a = tensor([[ 0, 1, 2, 3, 4],
[ 5, 6, 7, 8, 9],
[10, 11, 12, 13, 14],
[15, 16, 17, 18, 19]])
indices matrixes are b = torch.LongTensor([0, 2, 3])
and c = torch.LongTensor([2, 4])
I can get the d = a[b,:][:,c], but how can I assign the -d to a[b,:][:,c]?
Furthermore, how can I assign the tensor having the same dimensions as d to a[b,:][:,c]?