@ptrblck, for reference, just to see if anything changed, I installed current torchvision, mod’d my script to
from torchvision.transforms.functional import resize
ttensor = resize(img=tensor, size=new_size, interpolation=torchvision.transforms.InterpolationMode.BILINEAR)
diff = ttensor.numpy().transpose(1, 2, 0) - pimg_sz
#...

it does seem that resize uses nn.interpolate just like i did, or same resampling algo - so the cat still has the shadow. It isnt important as these bilinear mode isnt lossless.
Nice to see functional.affine() !