8000 Add hyperbolic trigonometric functions (Sinh, Cosh, Atanh, Asinh, Acosh) to core/graph by janpfeifer · Pull Request #473 · gomlx/gomlx · GitHub
[go: up one dir, main page]

Skip to content

Add hyperbolic trigonometric functions (Sinh, Cosh, Atanh, Asinh, Acosh) to core/graph - #473

Merged
janpfeifer merged 1 commit into
mainfrom
atanh
Oct 23, 2026
Merged

janpfeifer merged 1 commit into
mainfrom
atanh

Conversation

@janpfeifer
@janpfeifer janpfeifer commented Oct 23, 2026 •
Copy link
Copy Markdown
Contributor

Summary

  • Added Sinh, Cosh, Atanh, Asinh, and Acosh to core/graph (complementing existing Tanh).
  • Automatically promotes half-precision inputs (Float16, BFloat16) to Float32 during intermediate computations to avoid overflow and cancellation before casting back to the input DType.
  • Added forward and gradient unit tests in core/graph/ops_util_test.go across backends and dtypes.

Motivated by gomlx/onnx-gomlx#94, thanks @arigon!

@janpfeifer
janpfeifer merged commit deae790 into main Oct 23, 2026
4 checks passed
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

0