I want to add noise to MNIST. I am using the following code to read the dataset:
train_loader = torch.utils.data.DataLoader(
    datasets.MNIST('../data', train=True, download=True,
                   transform=transforms.Compose([
                       transforms.ToTensor(),
                       transforms.Normalize((0.1307,), (0.3081,))
                   ])),
    batch_size=64, shuffle=True)

I’m not sure how to add (gaussian) noise to each image in MNIST.