https://www.cnblogs.com/iclaire/p/12658730.html 1.内存不够了:改小batchsize,测试时加上with torch.no_grad() 2.内存未分配:按Win10下多线程的问题解决