I am confused as to whether data pre-processing using torchvision.transforms takes place on the whole dataset at once or individually on the mini-batches of data?
Suppose I have:
transform = transforms.Compose([transforms.RandomResizedCrop(224),
                                transforms.ToTensor()])
dataset = datasets.ImageFolder(root, transform = transform)
dataset_loader = torch.utils.data.DataLoader(dataset, batch_size = batch_size)

Can anyone explain whether transform occurs on the whole dataset at once or does it occur in mini-batches of data with batch size being equal to the batch_size specified in DataLoader.