I’m feeding the output of the neural network and the labels to the EmbeddingLoss(), both of them are torch.cuda.LongTensor.
If you look at the error, it shows the error is at line 105 of file loss.py 5
buffer[torch.eq(target, -1.)] = 0
torch.eq received an invalid combination of arguments - got (torch.cuda.LongTensor, float), but expected one of:

(torch.cuda.LongTensor tensor, int value)

the type of my target is torch.cuda.LongTensor which is I’m feeding to the function but the problem is in the next argument of the function.
I don’t think this is an error from my side. I’m not feeding any wrong input, the problem is in the code of loss.py 5 file. Please correct me if I’m wrong
Thanks