Open paulagd opened 3 years ago
line 137, 140 must be preditems.scatter(dim=1, index=test_indices,src=torch.ones_like(test_indices).float().cuda()) topkpreds.scatter(dim=1, index=test_indices[:, :k], src=torch.ones_like(test_indices[:, :k]).float().cuda())
line 137, 140 must be preditems.scatter(dim=1, index=test_indices,src=torch.ones_like(test_indices).float().cuda()) topkpreds.scatter(dim=1, index=test_indices[:, :k], src=torch.ones_like(test_indices[:, :k]).float().cuda())
thanks a lot!
Hi,
I'm trying to run your code and i'm getting an error on the evaluation function. Could you please tell me what am I doing wrong?
Thank you very much!