It could use a different algorithms and you could compare the outputs for different interpolation methods. If I remember it correctly, at least OpenCV and PIL used different methods and I guess that the internal PyTorch method might have used one of them.