I meant if you passed the transformation to the Dataset object as shown in the Transforms section for eg.  transformed_dataset = FaceLandmarksDataset(csv_file='data/faces/face_landmarks.csv', root_dir='data/faces/', transform=transforms.Compose([ Rescale(256), RandomCrop(224), ToTensor() ]))
as shown in more detail here 23