How can I swap axis in a torch tensor?
I have a torch tensor of size torch.Size([1, 128, 56, 128])
1 is channel, 128 is the width, and height. 56 are the stacks of images.
How can I resize it to torch.Size([1, 56, 128, 128]) ?

You could simply use permute or transpose.
