1. batch_size 和用的gpu的卡的数量要成倍数, 不然tensor会不知道怎么分到gpu的卡里;
2.在python debugger里运行python文件和新启动一个terminal(非debugger)中是不一样的…… 哪怕命令都是/bin/bash xxx.py
1. batch_size 和用的gpu的卡的数量要成倍数, 不然tensor会不知道怎么分到gpu的卡里;
2.在python debugger里运行python文件和新启动一个terminal(非debugger)中是不一样的…… 哪怕命令都是/bin/bash xxx.py