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

Fix log-sum-exp to match the definition #527

Merged
merged 1 commit into from
Sep 2, 2023
Merged

Fix log-sum-exp to match the definition #527

merged 1 commit into from
Sep 2, 2023

Conversation

jonatanklosko
Copy link
Member

Currently we are subtracting max from the exponent, but we don't actually add it at the end. Consequently the return value does not match the definition.

Refs: torch, jax.

@seanmor5 seanmor5 merged commit ed52a53 into main Sep 2, 2023
3 checks passed
@jonatanklosko jonatanklosko deleted the jk-logsumexp branch September 2, 2023 15:49
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.

3 participants