Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Error while loading the pretrained model #139

Open
RishabhMaheshwary opened this issue Mar 29, 2020 · 1 comment
Open

Error while loading the pretrained model #139

RishabhMaheshwary opened this issue Mar 29, 2020 · 1 comment

Comments

@RishabhMaheshwary
Copy link

RuntimeError: Error(s) in loading state_dict for InferSent:
Missing key(s) in state_dict: "enc_lstm.weight_ih_l0", "enc_lstm.weight_hh_l0", "enc_lstm.bias_ih_l0", "enc_lstm.bias_hh_l0", "enc_lstm.weight_ih_l0_reverse", "enc_lstm.weight_hh_l0_reverse", "enc_lstm.bias_ih_l0_reverse", "enc_lstm.bias_hh_l0_reverse".
Unexpected key(s) in state_dict: "encoder.enc_lstm.weight_ih_l0", "encoder.enc_lstm.weight_hh_l0", "encoder.enc_lstm.bias_ih_l0", "encoder.enc_lstm.bias_hh_l0", "encoder.enc_lstm.weight_ih_l0_reverse", "encoder.enc_lstm.weight_hh_l0_reverse", "encoder.enc_lstm.bias_ih_l0_reverse", "encoder.enc_lstm.bias_hh_l0_reverse", "classifier.0.weight", "classifier.0.bias", "classifier.1.weight", "classifier.1.bias", "classifier.2.weight", "classifier.2.bias".

@adorable-mx
Copy link

Hi, I face the same issue as you post. Have you found the solutions?

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

No branches or pull requests

2 participants