Here are the values of the tensor and its numpy version using X.numpy()
tensor(28.0000)
27.999998
what i did in the original code is to normalize an image using transforms and then apply the inverse. the numbers printed above are the min value in the image.
I think it’s not a problem of accuracy but rather of the floating point precision. Some values can’t be represented exactly. Have a look here for more information.