I don’t think so that it automatically converts all image into [0,1]
have a look :-:
import numpy as np
from torchvision import transforms
a = np.full((3,3), 255)
print(a)
x = transforms.ToTensor()
y = x(a)
print(y)
[[255 255 255]
[255 255 255]
[255 255 255]]
tensor([[[255, 255, 255],
[255, 255, 255],
[255, 255, 255]]])