I am getting the following error trying to load my model:
File “/usr/local/lib/python2.7/dist-packages/torch/nn/modules/module.py”, line 470, in load_state_dict
for name, param in state_dict.items():
AttributeError: ‘str’ object has no attribute ‘items’
I save the model using:
and then I try to load it using:
model = MyModel((1000,1000)) model.load_state_dict(model_path)
What could be causing this?