BLIP icon indicating copy to clipboard operation
BLIP copied to clipboard

Error 'RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu) ' in line 147 of train_retrieval.py

Open Qusijia opened this issue 2 years ago • 1 comments

Thank you for your work. May I ask how I can make the necessary changes if you encounter the above issue? Do you have any suggestions you can give me?

Qusijia avatar May 31 '23 08:05 Qusijia

topk_idx->topk_idx.cpu()

jucic avatar Jul 10 '23 08:07 jucic