xxradon / PytorchToCaffe

Pytorch model to caffe model, supported pytorch 0.3, 0.3.1, 0.4, 0.4.1 ,1.0 , 1.0.1 , 1.2 ,1.3 .notice that only pytorch 1.1 have some bugs
MIT License
783 stars 224 forks source link

for name,layer in net.named_modules(): AttributeError: 'collections.OrderedDict' object has no attribute 'named_modules' #59

Open zengfanyi opened 4 years ago

zengfanyi commented 4 years ago

/data/PytorchToCaffe/pytorch_to_caffe.py", line 772, in trans_net for name,layer in net.named_modules(): AttributeError: 'collections.OrderedDict' object has no attribute 'named_modules'