解决AttributeError: ‘model‘ object has no attribute ‘copy‘
错误AttributeError: 'model' object has no attribute 'copy'原因原因是没有使用model.state_dict()进行模型保存,但是使用了model.load_state_dict()加载模型。这两者要配套使用。解决方案使用一下的方式保存、加载模型#保存模型torch.save( my_resnet.state_dict(),"model.pth")#加载模型model.load_state_dict(torch.Load("model