How to fulfill image scale?

it is image.scale in torch. for example, for a given tensor low_pattern
pattern = image.scale(low_pattern, MAX_SIZE, MAX_SIZE,‘bicubic’),
the script can scale low_pattern to the specified size MAX_SIZE with ‘bicubic’ interpolation.
so how to fulfill it in pytorch?