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

Incorrect gradient + dual leakage #40

Open
MikeInnes opened this issue Jan 24, 2020 · 0 comments
Open

Incorrect gradient + dual leakage #40

MikeInnes opened this issue Jan 24, 2020 · 0 comments

Comments

@MikeInnes
Copy link

Though this is a similar symptom to #31, it's a very different (and more interesting) case. Although FD2 can't force users not to leak duals in general, in this case it has every opportunity to deal with them as usual but simply doesn't.

julia> D(1) do x
         D(2) do y
           D(3) do z
             x = z * y
           end
         end
         x
       end
(2 + 1ϵ₂)

(correct answer is 0; ForwardDiff throws an ambiguous tag error which is the easy fix in this case too, assuming there's no interest in making the tag system more capable.)

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

No branches or pull requests

1 participant