News for hackers. Stuff that matters.
Re:Differentiable Programming Mega-Proposal by neilparikh on Friday September 06, 2019 @02:35PM (#20898429)
AD on loops/recursion works fine when you implement it using dual numbers (see for https://news.ycombinator.com/item?id=20893414 an example). If you used this to implement x^n using a for loop, you would get the correct derivative (n * x ^ (n - 1)).

There are no comments on this comment yet.