Skip to content

Conversation

@saitcakmak
Copy link
Contributor

Summary: Similar to #2540, replaces exp(x) - 1 with the numerically more stable expm1.

Differential Revision: D62813775

Summary: Similar to meta-pytorch#2540, replaces `exp(x) - 1` with the numerically more stable `expm1`.

Differential Revision: D62813775
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Sep 17, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62813775

@codecov
Copy link

codecov bot commented Sep 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.98%. Comparing base (238f05a) to head (3fc6895).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2541   +/-   ##
=======================================
  Coverage   99.98%   99.98%           
=======================================
  Files         193      193           
  Lines       17010    17010           
=======================================
  Hits        17007    17007           
  Misses          3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 509bccc.

facebook-github-bot pushed a commit that referenced this pull request Dec 24, 2024
Summary:
Similarly to #2540 and #2541: use more numerically stable `expm1`.

Found with TorchFix https://github.com/pytorch-labs/torchfix/.  This should be the last instance to replace in the current codebase.

Pull Request resolved: #2660

Reviewed By: saitcakmak

Differential Revision: D67613867

Pulled By: kit1980

fbshipit-source-id: a6305f0f3ec4a3e6ec6f6f6b9c9361a61eaf06e9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants