Hey guys,
I have a tensor of shape (5,10,15):
x = torch.rand(5,10,15)
and then I would like to get the indices of max values along last column:
ids = torch.argmax(x, dim=2) # this has shape (5,10)
Now, what do I do to get the values of the corresponding indices?
My output would be of shape (5,10,1)