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 while running Google collab GPU #11

Open
MPS-MASTER opened this issue Oct 27, 2021 · 1 comment
Open

error while running Google collab GPU #11

MPS-MASTER opened this issue Oct 27, 2021 · 1 comment

Comments

@MPS-MASTER
Copy link

Runtime error : lengths should be 1-D CPU int64 tensor, got cuda:0 Long tensor

@seanie12
Copy link
Owner

Try lengths = lengths.cpu() even if you train the model in gpu.

Please refer to the following links

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