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

"RuntimeError: 'lengths' argument should be a 1D CPU int64 tensor " #212

Closed
giannisginis opened this issue Dec 19, 2019 · 2 comments
Closed

Comments

@giannisginis
Copy link

Hi, i am trying to interpret my intent classification model by using your "IMDB tutorial" and im facing the following error "RuntimeError: 'lengths' argument should be a 1D CPU int64 tensor
". This error raises during the forward pass of an RNN (lstm) which takes as input a pack sequence (pack_padded_sequence library).

@NarineK
Copy link
Contributor

NarineK commented Dec 22, 2019

@giannisginis, it depends how you re-defined and trained the model. It looks like failing in the forward pass. Did you retrain it on a different dataset ?

@NarineK
Copy link
Contributor

NarineK commented Jan 4, 2020

@giannisginis, closing this since we haven't heard from you. Feel free to open a new issue if you have any further questions.

@NarineK NarineK closed this as completed Jan 4, 2020
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