Skip to content
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

l1 loss may device zero #14

Closed
WenmuZhou opened this issue Dec 4, 2019 · 1 comment
Closed

l1 loss may device zero #14

WenmuZhou opened this issue Dec 4, 2019 · 1 comment

Comments

@WenmuZhou
Copy link

When mask.sum() ==0 in this line https://github.com/MhLiao/DB/blob/master/decoders/l1_loss.py#L10,the l1loss will get nan

@MhLiao
Copy link
Owner

MhLiao commented Dec 4, 2019

@WenmuZhou You are right. I have fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants