Skip to content

Conversation

robieta
Copy link
Contributor

@robieta robieta commented Oct 2, 2025

Summary: Use fastmath intrinsics in tanh_approx_fp32 when we don't have a native fast tanh instruction. We need to use the sigmoid formulation rather than dividing two exponents due to numeric stability.

Differential Revision: D83082730

@facebook-github-bot
Copy link
Contributor

@robieta has exported this pull request. If you are a Meta employee, you can view the originating Diff in D83082730.

facebook-github-bot pushed a commit that referenced this pull request Oct 2, 2025
Summary:

Use fastmath intrinsics in `tanh_approx_fp32` when we don't have a native fast tanh instruction. We need to use the sigmoid formulation rather than dividing two exponents due to numeric stability.

Differential Revision: D83082730
facebook-github-bot pushed a commit that referenced this pull request Oct 2, 2025
Summary:

Use fastmath intrinsics in `tanh_approx_fp32` when we don't have a native fast tanh instruction. We need to use the sigmoid formulation rather than dividing two exponents due to numeric stability.

Differential Revision: D83082730
Summary:

Use fastmath intrinsics in `tanh_approx_fp32` when we don't have a native fast tanh instruction. We need to use the sigmoid formulation rather than dividing two exponents due to numeric stability.

Differential Revision: D83082730
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants