出现错误的原因是因为Dataloader的多线程问题
Google结果显示是Pytorch在win10中的debug,暂不支持多线程,把num_worker改为0问题解决; 查看官方文档结果如下: 也是建议我们把num_worker设为0,再逐步Debug检测Code。
pytorch debug 出现 'Broken pipe' 错误
原文:https://www.cnblogs.com/wioponsen/p/13689681.html