Win10下pytorch报错:BrokenPipeError: [Errno 32] Broken pipe

原因:不可使用多线程
改正:将torch.utils.data.DataLoader函数中参数num_workers设置为0
在这里插入图片描述

发布了125 篇原创文章 · 获赞 56 · 访问量 7万+

猜你喜欢

转载自blog.csdn.net/Nicht_sehen/article/details/102748704