Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error:torch.load #4

Open
fanbinqi opened this issue Mar 9, 2019 · 1 comment
Open

error:torch.load #4

fanbinqi opened this issue Mar 9, 2019 · 1 comment

Comments

@fanbinqi
Copy link

fanbinqi commented Mar 9, 2019

when i reload the model_best.pth.tar, i got this error:
=> loading checkpoint './model_best.pth.tar'
Traceback (most recent call last):
File "prune.py", line 37, in
model.load_state_dict(checkpoint['state_dict'])
File "/usr/local/lib/python3.5/dist-packages/torch/nn/modules/module.py", line 522, in load_state_dict
.format(name))
KeyError: 'unexpected key "module.feature.0.weight" in state_dict'

how can i solve this problem???

@fanbinqi
Copy link
Author

fanbinqi commented Mar 9, 2019

I use python 3.5.2 and Pytorch 0.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant