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

Enforce 0.0 * inf = 0.0 #47

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

martenlienen
Copy link

In unbalanced OT with small reach, f can become inf in some cases which should not matter because it is multiplied by 0 (alpha is 0 in the cases where f is inf in my experience). But without this fix, we multiply 0.0 * inf which is NaN in floating point numbers instead of 0.

@mvinyard
Copy link

Thanks @martenlienen - I found this patch quite useful.

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

Successfully merging this pull request may close these issues.

2 participants