Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use torch.expm1 #36995

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

Merged
merged 1 commit into from
Mar 26, 2025
Merged

Use torch.expm1 #36995

merged 1 commit into from
Mar 26, 2025

Conversation

cyyever
Copy link
Contributor

@cyyever cyyever commented Mar 26, 2025

Use torch.expm1(x) instead of torch.exp(x) - 1. It is more accurate for small values of x.

@github-actions github-actions bot marked this pull request as draft March 26, 2025 07:47
Copy link

Hi 👋, thank you for opening this pull request! The pull request is converted to draft by default. The CI will be paused while the PR is in draft mode. When it is ready for review, please click the Ready for review button (at the bottom of the PR page). This will assign reviewers and trigger CI.

@cyyever cyyever marked this pull request as ready for review March 26, 2025 08:11
@github-actions github-actions bot requested a review from eustlb March 26, 2025 08:11
Copy link
Member

@Rocketknight1 Rocketknight1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thank you for the update!

@Rocketknight1 Rocketknight1 merged commit 78afa1c into huggingface:main Mar 26, 2025
12 checks passed
@cyyever cyyever deleted the expm1 branch March 26, 2025 14:45
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