-
Notifications
You must be signed in to change notification settings - Fork 32
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
Removal of redundant backwards compat to_namedtuple_expr
#280
Conversation
bors try |
tryTimed out. |
It's surprising that integration tests take more than 6h now: Related TuringLang/Turing.jl#1660 |
bors r+ |
👎 Rejected by too few approved reviews |
bors r+ |
Looking at `to_namedtuple_expr` it seems like it's leftover code to be compatible with Julia 1.2. Given that DPPL only supports Julia 1.3 or higher I've simplified the implementation, doing away with the `namedtuple` method. EDIT: This also fixed a bug I ran into when using Zygote + `@submodel` in #267 . Struggling to come up with a MWE of the bug, but just adding merging this fixed it. This was also my original motivation for making this change, as Zygote was complaining about the `namedtuple` for some reason (something about "non-differentiable getfield"). Co-authored-by: Hong Ge <hg344@cam.ac.uk>
Timed out. |
Yup, it seems like what I mentioned in the other PR is the case: need to also upper-bound Distributions.jl in these tests too. |
I merged this PR since all CI tests appear to be passing. Not sure why |
As I said above, they're timing out because Distributions@0.12.11 is being used. Fixed in #282 . |
Looking at
to_namedtuple_expr
it seems like it's leftover code to be compatible with Julia 1.2. Given that DPPL only supports Julia 1.3 or higher I've simplified the implementation, doing away with thenamedtuple
method.EDIT: This also fixed a bug I ran into when using Zygote +
@submodel
in #267 . Struggling to come up with a MWE of the bug, but just adding merging this fixed it. This was also my original motivation for making this change, as Zygote was complaining about thenamedtuple
for some reason (something about "non-differentiable getfield").