-
Notifications
You must be signed in to change notification settings - Fork 66
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
nnf_nll_loss - ignore_index #53
Comments
Yeah should be -100 follwing the pytorch impl:
|
Yes. I tested that also but it said boom on my Windows machine |
What I meant to say is that this crashes my session at the call of
while it should be calling https://github.com/mlverse/torch/blob/master/src/lantern/lantern.h#L1649 |
ok, I'll take a look ASAP |
This works for me if I do:
I could consider making |
Indeed, works with long instead of int. Don't know enough about the C API of lantern/libtorch to give advice. I don't mind specifyng that it is a long. Don't know currently if this impacts speed of anything. |
Would be great if nnf_nll_loss would have a default value for ignore_index
https://github.com/mlverse/torch/blob/master/R/nnf-loss.R#L343
The text was updated successfully, but these errors were encountered: