2021
07-22
07-22
解决pytorch trainloader遇到的多进程问题
pytorch中尝试用多进程加载训练数据集,源码如下:trainloader=torch.utils.data.DataLoader(trainset,batch_size=4,shuffle=True,num_workers=3)结果报错:RuntimeError: Anattempthasbeenmadetostartanewprocessbeforethe currentprocesshasfinisheditsbootstrappingphase. Thisprobablymeansthatyouareno...
继续阅读 >