Resize an image with one simple function


I need to resize an image as torch.Tensor. I would like to have a simple function like image.resize(tensor, size=(new_height, new_width), mode='bilinear'). Is there one? I remember there was such a function in torch, but pyTorch? I searched for it but just saw over-complicated functions with transforms and apply and stuff…

Try upsample?

Not quite. It only allows integer scales and only upsample.