我有pytorch和mnist错误。 为什么会发生此错误?
RemoteDisconnected:远端封闭的连接,无响应
import torch
import torchvision.datasets as dsets
import torchvision.transforms as transforms
import matplotlib.pyplot as plt
import random
training_epochs = 15
batch_size = 100
'mnist_train = dsets.MNIST(root='MNIST_data/',
train=True,
transform=transforms.ToTensor(),
download=True)'
mnist_test = dsets.MNIST(root='MNIST_data/',
train=False,
transform=transforms.ToTensor(),
download=True)
---------------------------------------------------------------------------------
RemoteDisconnected Traceback (most recent call last)
c:\Users\PSG\Desktop\Code\Python\pytorch\lab-07_2_mnist_introduction.py in
22 train=True,
23 transform=transforms.ToTensor(),
---> 24 download=True)
25
26 mnist_test = dsets.MNIST(root='MNIST_data/',
RemoteDisconnected: Remote end closed connection without response
---------------------------------------------------------------------------------