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

IndexError: scatter_(): Expected dtype int64 for index. #38

Open
mingchenLuo opened this issue Jan 21, 2021 · 3 comments
Open

IndexError: scatter_(): Expected dtype int64 for index. #38

mingchenLuo opened this issue Jan 21, 2021 · 3 comments

Comments

@mingchenLuo
Copy link

i hava no idea to solve the problem.
can you help me?
Thanks

@xyqqqfs
Copy link

xyqqqfs commented May 13, 2021

Hi!Were you able to resolve this issue?

@DhyanilMehta
Copy link

You can add .long() to batch_labels.view(-1,1) in the line of code where the error is coming. Then the error will go away.

@xyqqqfs
Copy link

xyqqqfs commented Mar 22, 2022

The problem has been solved, thank you very much!

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

3 participants