Hi, I want to implement the torch.gather
function, but I am confused about indexing.
In my case, I have 4D tensor which has the size of [B, N, K, C]
I want to sample S points from N. I have an indices tensor that has size of [B, S]
In the end, I want a tensor that has size of [B, S, K, C]
How can I achieve this?