leichen@gpu-compute2$ python3 load_model_test.py
Traceback (most recent call last):
File "load_model_test.py", line 19, in
model1.load_state_dict(torch.load('/home/home2/leichen/SuperResolutor/Approx_discrim/model3/n4conv3.pt'))
File "/home/home2/leichen/.local/lib/python3.5/site-packages/torch/nn/modules/module.py", line 695, in load_state_dict
state_dict = state_dict.copy()
AttributeError: 'function' object has no attribute 'copy'
leichen@gpu-compute2$ python3 load_model_test.py Traceback (most recent call last): File "load_model_test.py", line 19, in
model1.load_state_dict(torch.load('/home/home2/leichen/SuperResolutor/Approx_discrim/model3/n4conv3.pt'))
File "/home/home2/leichen/.local/lib/python3.5/site-packages/torch/nn/modules/module.py", line 695, in load_state_dict
state_dict = state_dict.copy()
AttributeError: 'function' object has no attribute 'copy'