-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error during training #18
Comments
I have removed dim parameter in log() Is it correct approach ? |
There is no dim parameter in torch.log() torch.log(input, out=None) → Tensor Parameters |
I meet the same error,were you able to solve this error? |
It seems this is the correct way |
I got this error while running
python coref.py
loss = torch.sum(torch.log(torch.sum(torch.mul(probs, gold_indexes), dim=1).clamp_(eps, 1-eps), dim=0) * -1)
TypeError: log() got an unexpected keyword argument 'dim'
The text was updated successfully, but these errors were encountered: