Resize expects a PIL.Image, while you are passing a tensor.
The most recent torchvision version added transformations, which also accept tensors so you could install the nightly or build from source.
If you don’t want to update torchvision, pass a PIL.Image to the transformation.