So, why we can set the “transform” parameter to be “torchvision.transforms.ToTensor()” when creating MNIST object?

mnist = torchvision.datasets.MNIST(
root=’./mnist/’,
train=True,
transform=torchvision.transforms.ToTensor()
)