Closed haguettaz closed 3 years ago
Hi @haguettaz ,
thank you for the PR. If I am correct, the derivative of sinc(x) = sin(x)/x could be extended to 0 when x==0:
Hi @bcharlier thanks for your comment. Indeed, I think you are right. The problem is I don't know how to define such a derivative (derivative by part) in the Sinc.h
file. By the way, it appears pytorch implements this function in its new (unstable) version: torch.sinc
, the unit test could be improved.
Hi @haguettaz ,
thanks again for your work! I suggest to use torch.sinc in the test.
Hi and thanks again @haguettaz , A few remarks :
Hi @joanglaunes! You're welcome, it's a pleasure to help you.
Adds sin(x)/x operator with the true value for the limit when x goes to 0. Warnings:
the gradient is undefined in 0EDIT:sinc'(0) = 0
x == 0
Test Plan: