Oki I got it.
http://pytorch.org/docs/0.2.0/_modules/torchvision/transforms.html#ToTensor 5.6k explains. The entire array is converted to torch tensor and then divided by 255. This is how it is forces the network to be between 0 and 1.