-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
fastmath support #90
Comments
This should be an easy contribution for anyone interested. We just need to go through the list |
@MikeInnes I am picking up this issue. |
388: Add Fastmath operators r=MikeInnes a=Satya758 Fixes issue #90 1. Basic idea is to apply @adjoint macro to all defined fastmath operators. 2. This is done by looping over fastmath [operators](https://github.com/JuliaLang/julia/blob/master/base/fastmath.jl#L31) and then retrieving defined differentiation expression for each from [DiffRules](https://github.com/JuliaDiff/DiffRules.jl/blob/master/src/rules.jl). 3. Using differentiation expression create adjoint function simillar to https://github.com/FluxML/Zygote.jl/blob/master/src/lib/number.jl#L7 I have added bunch of test cases covering unary and binary operators treating normal operators as a expected value. Co-authored-by: Satya <satyap.kommaraju@gmail.com>
@fastmath
is convenient for enabling the autovectorizer and contractions (ie, fma instructions) on unrolled expressions. Would be nice to addmul_fast
and friends.The text was updated successfully, but these errors were encountered: