PyTorch错误:The “freeze_support()” line can be omitted if the program is not going to be frozen to produce an executable.
The "freeze_support()" line can be omitted if the program is not going to be frozen to produce an executable.
list of args are prepared. going to use multiprocessing (cores: 4)
错误如下所示:
错误原因:此错误是因为没有将程序放在主程序里面
解决办法:将程序放进主程序中即可解决问题,如下图所示