-
Notifications
You must be signed in to change notification settings - Fork 221
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
Zygote AD backend #783
Zygote AD backend #783
Conversation
By inplace operations do you mean the way we use vi[spl] = theta
model(vi, spl) |
Seems so https://travis-ci.org/TuringLang/Turing.jl/jobs/531342906#L624, it is unclear to me what the solution here is. |
Doesn't seem like much, so far: FluxML/Zygote.jl#75. The PR to fix this hasn't made it through and may have some caveats for our case. |
@mohamed82008 @willtebbutt Just a quick thought, can we use |
f88e568
to
09ac6a7
Compare
@mohamed82008 Perhaps revisit this PR when refactoring |
Sure, I will give it another look. Although the underlying issue in Zygote (FluxML/Zygote.jl#265) was not resolved yet. But maybe I can work-around it. |
09ac6a7
to
9adad9b
Compare
I added tests for Zygote, many of which are currently failing. I will try shooting them down one by one in the next few days. |
Ran into FluxML/Zygote.jl#468 for |
Tests should pass after the following PRs are merged and released:
in this order. |
4f1fed6
to
51afb27
Compare
eb56f89
to
75d3e66
Compare
The only test failures here are because of DistributionsAD. I will work on them. |
189b860
to
f235cf0
Compare
Co-Authored-By: David Widmann <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor compat things.
Co-Authored-By: David Widmann <[email protected]>
Co-Authored-By: David Widmann <[email protected]>
Co-Authored-By: David Widmann <[email protected]>
Co-Authored-By: David Widmann <[email protected]>
Co-Authored-By: David Widmann <[email protected]>
…into mt/zygote_ad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lookgs great! 👍
thanks @mohamed82008. Looks good to me, ready to merge from my side! |
This is a WIP PR that introduces Zygote to our AD family.
MvNormal
is still not working and some inplace operations are trippingZygote
, so I need to figure out how to make them play well together.