-
Notifications
You must be signed in to change notification settings - Fork 95
Add rule for sincospi
#497
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
Conversation
oxinabox
left a comment
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.
Can you bump the minor version number also,
so can tag a new release?
Codecov Report
@@ Coverage Diff @@
## master #497 +/- ##
=======================================
Coverage 98.12% 98.12%
=======================================
Files 22 22
Lines 2350 2351 +1
=======================================
+ Hits 2306 2307 +1
Misses 44 44
Continue to review full report at Codecov.
|
|
Looks like it need a guard behind a |
|
Thanks! |
|
One thing it noticed and was wondering about. Why do we test with |
|
I think the reason is that finite differences has larger errors there. But I agree this will miss many type promotion bugs. The rrule from It would be possible to explicitly test I suppose. Testing could (piratically) turn such projection off, or make it an error. And it could convert all Float64 to Float32 just to check types, even if it doesn't do finite differences? Would have to dig quite a bit in ChainRulesTestUtils. |
Hello,
as discussed on discourse, differentiation of
cispifails, which is due tocopysignbeing non differentiable. This problem is avoided by defining a rule forsincospiinfastmath_able.jl. Note the the sign was moved from\pito the sine term (sinpix), to warrant that\pidoes not enforce Float64 as result type, which-\piwould do.Hope that the edit is acceptable, but happy to adapt, if needed.