Resize an image with one simple function

Hi.

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? http://pytorch.org/docs/0.3.1/nn.html?highlight=upsample#torch.nn.functional.upsample

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