-
Notifications
You must be signed in to change notification settings - Fork 25k
Fix for derivative of sinc(x) when x is positive but very very small #56986
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
💊 CI failures summary and remediationsAs of commit 0f4269a (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
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.
Thanks for the update.
That looks good!
Could you rebase on top of master to properly trigger the CI please? |
Problem arises for sinc'(x) where x > 0, but x ** 2 == 0 (which happens for some very small floats).
Rebased |
@albanD seems like all the tests still didn't run. Let me know if I'm doing something wrong. |
Let me look into it. |
I can also open a new PR from a clean branch if that's easier than debugging CI. |
No need, this is actually because we're getting rate limited by circle CI. |
Ok, opening another PR with the same commit did the trick :D Should be good now. |
Apologies, I'm a little confused. Should I open a new MR? |
No need to do anything. Note that the libtorch fail seems unrelated. |
@albanD has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Thanks for keeping this moving along @albanD, I appreciate it! |
…ytorch#56986) Summary: Problem arises for sinc'(x) where x != 0, but x ** 2 == 0, which happens for some very small floats. I realized that my solution from pytorch#56763 was incomplete when I did a quick implementation using `torch.autograd.Function` and still got a `NaN` from my derivative. Pull Request resolved: pytorch#56986 Reviewed By: gchanan Differential Revision: D28093507 Pulled By: albanD fbshipit-source-id: 2a30e1065b08c5c60de843a0778dedeb0fb295f4
Problem arises for sinc'(x) where x != 0, but x ** 2 == 0, which happens for some very small floats.
I realized that my solution from #56763 was incomplete when I did a quick implementation using
torch.autograd.Function
and still got aNaN
from my derivative.