Solved by ptrblck in post #2 
              
              
                You could specify the transformations for each dataset. 
This code should work: 
mnist = datasets.MNIST(
    root='/home/ptrblck/python/data',
    download=False,
    transform=transforms.Compose([
        transforms.ToTensor()
    ])
)

cifar = datasets.CIFAR10(
    root='/home/ptrblck/python/data'…