Resising tensor in pytorch

Pytorch transforms module has some functionality to resize images, which is great. However, I would like to resize an image which has already been transferred to the GPU.

Is there some way to perform the resize operation in pytorch on the GPU using linear interpolation?

I think you can use the interpolate function:

1 Like

Ah thank you. Yes, I will give this a try.