Skip to content
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

Perturbation Confusion (Nested Differentiation Bug) #45

Open
jrevels opened this issue Jan 13, 2017 · 2 comments
Open

Perturbation Confusion (Nested Differentiation Bug) #45

jrevels opened this issue Jan 13, 2017 · 2 comments

Comments

@jrevels
Copy link
Member

jrevels commented Jan 13, 2017

I already mention this in ReverseDiff's documentation, but I'm opening this issue to increase visibility and track progress.

ReverseDiff has the same perturbation confusion issue as ForwardDiff. My plan to solve this in ReverseDiff is the same as my plan to solve this in ForwardDiff; the tag will be added to the TrackedArray/TrackedReal types (and possibly the tape types, I'm not sure yet).

@MikeInnes
Copy link

MikeInnes commented Jun 28, 2018

Here's a simple test case, if anyone is interested:

D(f, x) = ReverseDiff.gradient(x->f(x[1]), [x])[1]

D(x -> x * D(y -> x * y, 3), 5) # 3
D(x -> x * D(y -> y * x, 3), 5) # 5

(the correct answer is 2x, or 10).

@yangky11
Copy link

Hi,

Any luck in fixing this bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants