Closed doer-hjh closed 4 years ago
We only support training with Pytorch Distributed Data Parallel (DDP) mode. Run your code with sh dist_train.sh
even if you are using single GPU (remember to set nproc_per_node
in dist_train.sh
to 1).
Thank you very much for your reply
错误显示如下: File "D:/test/DNA-master-new/DNA-master/searching/train.py", line 277, in
main()
File "D:/test/DNA-master-new/DNA-master/searching/train.py", line 272, in main
writer=writer)
File "D:\test\DNA-master-new\DNA-master\searching\dna\distill_train.py", line 104, in distill_train
reset_data=reset_data)
File "D:\test\DNA-master-new\DNA-master\searching\dna\distill_train.py", line 699, in _potential
for layer in supernet.module.modules():
File "D:\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 594, in getattr
type(self).name, name))
AttributeError: 'StudentSuperNet' object has no attribute 'module'
还请您能够帮忙解答!