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

Pullback function #199

Open
ConnorMallon opened this issue Apr 23, 2022 · 2 comments
Open

Pullback function #199

ConnorMallon opened this issue Apr 23, 2022 · 2 comments

Comments

@ConnorMallon
Copy link

ConnorMallon commented Apr 23, 2022

Does ReverseDiff.jl have a something similar to y,pb=Zygote.pullback(f,x) which builds a pullback function pb that can be called on an output tangent Δy and when called internally does the vector-jacobian product without assembling the jacobian ?

@mohamed82008
Copy link
Member

You can do it by hacking a little around the internals of ReverseDiff but it's not easy to do. Look at the ReverseDiff code in AbstractDifferentiation.jl for a hint. I am currently refactoring AbstractDifferentiation though so I don't want to recommend using it for now.

@mohamed82008
Copy link
Member

I don't want to recommend using AbstractDifferentiation now but you can adapt the implementation there for your purposes.

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

2 participants