-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
Test changes from https://github.com/FluxML/ZygoteRules.jl/pull/26 #1466
base: master
Are you sure you want to change the base?
Conversation
Seems the Zygote test failures only point to a few tests that have to be updated since they rely on the current non-collapsing behaviour. |
Most if not all of those should be fixed by #1328, but it hasn't been merged yet. Do you have any insight into the DynamicPPL error? If it doesn't look related, the ZygoteRules PR should be good to go. |
DynamicPPL can be ignored - AbstractMCMC 4.5 contains a breaking change which was accidentally released in a non-breaking release (TuringLang/AbstractMCMC.jl#132 (comment)). Hopefully it will be yanked soon (JuliaRegistries/General#94031). |
I went through the CI logs once more and I think https://github.com/FluxML/Zygote.jl/actions/runs/6631670834/job/18015683033?pr=1466#step:6:818 might be problematic: There |
I guess my assumption about the return type of Zygote.jl/src/compiler/interface.jl Line 98 in f755127
|
Yeah, so this goes all the way back to the early early days of Zygote and I don't think the behaviour nor the reasoning for it have ever been documented: https://github.com/FluxML/Zygote.jl/blame/087b55467afb4ee312ad1325de02bdf91e07e790/src/compiler/interface.jl#L60. We should make a more formal guarantee now, but of what? It would be good to know where other AD libraries fall on this, AbstractDifferentiation.jl and its backends come to mind. Also cc @mcabbott since I think he last had to deal with this part of the codebase. |
Yeah, I think such conventions should be documented more clearly and followed more consistently. IMO it would be reasonable to demand that |
We have both Zygote's own CI and downstream tests here, so it'll be much easier to see what the impact is.
PR Checklist