Edit mnist.py under …/torchvision/datasets and replace “http://yann.lecun.com/exdb 23” with “https://ossci-datasets.s3.amazonaws.com/ 46” in resources array under class MNIST. Then it downloads datasets.