floodsung/LearningToCompare_FSL

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

mmmmmmrluo opened this issue · 3 comments

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

Hi!Were you able to resolve this issue?

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.

The problem has been solved, thank you very much!