Pytorch 报错:RuntimeError: DataLoader worker (pid(s) ****, ****, ****, ****) exited unexpectedly
今天用Pytorch训练一个小代码,加载数据的地方self.train_loader=torch.utils.data.DataLoader(self.train_gaze,batch_size,shuffle=True,num_workers=workers)一开始设置workers为4,报出如下错误RuntimeError:DataLoaderworker(pid(s)****,****,**