Since you’ve not specified which dimensions you want to visualize, I’m assuming your data is in the format of (B x C x H x W). Then you can just use,
torchvision.utils.make_grid(tensor)

which will expand your tensor in B and C to give you a tensor of ((BxC) x H x W) which you can then convert to numpy array and view.
For more information, you can refer to:
https://pytorch.org/docs/stable/torchvision/utils.html#torchvision-utils 10