I have 2 tensors A and B both having a shape of 2 x 10 x 5 x 2
I can get the max values and their indices with values, indices = A.max(dim=-2)
How do I use the indices to select the corresponding values in tensor B?