Skip to content

Improve coeffecients for FastTanh using CF approximation.#2888

Merged
copybara-service[bot] merged 1 commit intomasterfrom
test_875854987
Feb 27, 2026
Merged

Improve coeffecients for FastTanh using CF approximation.#2888
copybara-service[bot] merged 1 commit intomasterfrom
test_875854987

Conversation

@copybara-service
Copy link
Contributor

Improve coeffecients for FastTanh using CF approximation.
Max relative error drops from 0.13% to 0.08%.
Average relative error drops from 0.003% to 0.0007%.
Also removed arr_b and its logic handling since it is always 1.0 shaving off some instruction count.

Max relative error drops from 0.13% to 0.08%.
Average relative error drops from 0.003% to 0.0007%.
Also removed arr_b and its logic handling since it is always 1.0 shaving off some instruction count.

PiperOrigin-RevId: 876167894
@copybara-service copybara-service bot merged commit 5d0d33a into master Feb 27, 2026
@copybara-service copybara-service bot deleted the test_875854987 branch February 27, 2026 11:37
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.

1 participant