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

Improve robustness of scaled translation with zero scale inputs. #75

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

balancap
Copy link
Contributor

@balancap balancap commented Jan 9, 2024

Adding safe_div and safe_reciprocal in order to avoid generating inf and nan when input scales are zero.

Adding `safe_div` and `safe_reciprocal` in order to avoid generating
`inf` and `nan` when input scales are zero.
@balancap balancap added the bug Something isn't working label Jan 9, 2024
@balancap balancap self-assigned this Jan 9, 2024
@balancap balancap merged commit 23a74b1 into main Jan 9, 2024
2 checks passed
@balancap balancap deleted the improve-robustness-with-zero-scale branch January 9, 2024 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant