Currently I would like to perform this numpy equivalent command
a = np.random.randn(5, 4, 3, 3)
a[range(5), :, [0, 1, 1, 2, 0], [1, 2, 0, 1, 0]]

I am a bit confused how to use torch.gather() to achieve this.