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

Pretrained model: size mismatch #14

Open
tow70 opened this issue Jan 28, 2019 · 1 comment
Open

Pretrained model: size mismatch #14

tow70 opened this issue Jan 28, 2019 · 1 comment

Comments

@tow70
Copy link

tow70 commented Jan 28, 2019

I get the following error when trying to load the pretrained model from www.space.ntu.edu.tw:

RuntimeError: Error(s) in loading state_dict for EncoderRNN:
size mismatch for embedding.weight: copying a param with shape torch.Size([92383, 512]) from checkpoint, the shape in current model is torch.Size([92391, 512]).

The sizes seem to be different from each other. How can I make it work?

@hegebharat
Copy link

hegebharat commented Mar 22, 2019

When I load the pretrained model as mentioned in the Read me file.
I got the below Error
RuntimeError: Error(s) in loading state_dict for EncoderRNN:
Missing key(s) in state_dict

The sizes seem to be different from each other. How can I make it work?

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

2 participants