Torchvision.transforms.Scale is based on Pil’s tools for interpolation (Pil.image.resize) that works in 2D only. To your purpose, you should rather have a look to scipy ndimages : https://docs.scipy.org/doc/scipy/reference/ndimage.html 227