Solved by Nikronic in post #2 
              
              
                Hello 
Pytorch default  backend for images are Pillow, and when you use ToTensor() class, PyTorch automatically converts all images into [0,1]. 
Here is the source. 
regards