You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem in this specific rule (and many others in DiffRules) seems to be that the irrational π / 180 is computed and promoted to Float64 automatically, without taking into account the other terms. Simply rearranging the terms to - (π * sind($x)) / 180 would fix this problem. @torfjelde tried to address this problem for multiple rules in JuliaDiff/DiffRules.jl#55.
This last one should still be in the Float32 domain. All the coefficients in https://github.com/JuliaDiff/DiffRules.jl/blob/master/src/rules.jl#L29 probably need to take on the value type of the input dual.
The text was updated successfully, but these errors were encountered: