-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add support for extended exp operation as halide_extended_exp. #8206
base: main
Are you sure you want to change the base?
Conversation
* "The Two-Pass Softmax Algorithm" by Marat Dukhan and | ||
* Artsiom Ablavatski [https://arxiv.org/abs/2001.04438]. | ||
* | ||
* The first element of the returned Tuple is a psuedo-mantissa while |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pseudo
* Artsiom Ablavatski [https://arxiv.org/abs/2001.04438]. | ||
* | ||
* The first element of the returned Tuple is a psuedo-mantissa while | ||
* the second is an exponent which is an integer. The product of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So is the returned Tuple a pair of (float32, int32), or is it (float32, float32) where the second is always an integral value?
Can you clarify a bit? It's not obvious to me what the deficiencies are (just curious) |
values for exponent part of extended exp. Improve test by comparing to three pass algorithm.
What's the status on this PR? |
Any updates on this? Should someone else take this over? |
Per discussion, add operator to implement efficient two pass softmax algorithm. This is a draft as it is hoped the numerics can be improved.