第一部分:问题描述
第二部分:解决方法
错误的代码:
dataset_train = datasets.MNIST('../data/mnist/', train=True, download=True, transform=trans_mnist)
dataset_test = datasets.MNIST('../data/mnist/', train=False, download=True, transform=trans_mnist)
更改之后的代码:
dataset_train = datasets.MNIST(root="/data/mnist", train=True,download=True, transform=trans_mnist)
dataset_test = datasets.MNIST(root="/data/mnist", train=False, download=True, transform=trans_mnist)
标签:CERTIFICATE,transform,dataset,SSL,train,error,download,True,mnist
From: https://blog.csdn.net/weixin_74009895/article/details/143509279