Could you describe in more detail how it is obviously wrong?
Quite likely, if the discussion in the documentation ( Resize — Torchvision main documentation ) is not enough, you’d want to look a the source code how bilinear interpolation is implemented.
for the left-top corner of the input image, the element are : 0, 1, 2, 10, 11, 12, but the corresponding element in output image are: 6.875.
In my example, it is a down-sampling case the resize value should be in-between the input values.
Could you lease tell the source code link so that I could have a look?