Hello,
You could add transformations by using torchvision.transforms here. 1
import torchvision.transforms as transforms
transforms_ = transforms.Compose(
    transforms.ToTensor(),
    ...
)

And then create a DataLoader pass the dataset and transforms_ to the dataloader.