-
Notifications
You must be signed in to change notification settings - Fork 112
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
[RFC] Add result accuracy to unary ops #2592
base: main
Are you sure you want to change the base?
Conversation
Proposal to add result_accuracy to the following transcendental unary ops: `exp`, `expm1`, `log`, `logp1`, `logistic` and `tanh`.
[RFC] Add result accuracy to transcendental unary ops
add description of the modes.
make explicit of compile time error
add more ops
|
Replying to @dimvar,
Yes.
We have higher accuracy software versions of these functions when the hardware accuracy isn't good enough, and we want to enable the accurate versions from Jax. Also it's been difficult for Jax users to reconcile inconsistent numerical behaviors when they depend on these functions across devices. This lets you express your requirements to the compiler in a device-independent fashion. |
This is a proposal to add
result_accuracy
attribute to the following transcendental unary ops to StableHLO:sin
,cos
,tan
,tanh
,sqrt
,rsqrt
,cbrt
,exp
,expm1
,log
,logp1
,logistic
anderf
. Any feedback would be appreciated, thanks!