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: indices should be either on cpu or on the same device as the indexed tensor (cpu) #5

Closed
peonycabbage opened this issue Nov 20, 2023 · 1 comment

Comments

@peonycabbage
Copy link

Thank you for sharing the code with us.

I would like to report an error.

\signjoey\batch.py", line 148, in sort_by_sgn_lengths
self.gls = self.gls[perm_index]
RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)

Any advice/suggestion is appreciated. Thank you very much~

@peonycabbage
Copy link
Author

I was able to resolve it now~

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