IndexError: scatter_(): Expected dtype int64 for index.
mmmmmmrluo opened this issue · 3 comments
mmmmmmrluo commented
i hava no idea to solve the problem.
can you help me?
Thanks
xyqqqfs commented
Hi!Were you able to resolve this issue?
DhyanilMehta commented
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 commented
The problem has been solved, thank you very much!