LearningToCompare_FSL icon indicating copy to clipboard operation
LearningToCompare_FSL copied to clipboard

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

Open mingchenLuo opened this issue 5 years ago • 3 comments

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

mingchenLuo avatar Jan 21 '21 07:01 mingchenLuo

Hi!Were you able to resolve this issue?

xyqqqfs avatar May 13 '21 07:05 xyqqqfs

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.

DhyanilMehta avatar Oct 06 '21 06:10 DhyanilMehta

The problem has been solved, thank you very much!

xyqqqfs avatar Mar 22 '22 02:03 xyqqqfs