Focal-Loss-Pytorch
Focal-Loss-Pytorch copied to clipboard
Expected object of backend CPU but got backend CUDA for argument #3 'index'
I've got this problem in line 51 alpha = self.alpha.gather(0,labels.view(-1))
How can I solve it? thanks a lot.