-
Notifications
You must be signed in to change notification settings - Fork 37
[Merged by Bors] - Fixed fallback for observe #265
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
Conversation
|
Seems fine as long as there is a fallback without samplers and you don't have to implement these methods if not needed. Seems this is the case with the additional Another question, is |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
I just tested it locally, and things are working now 👍
Exactly, so this PR doesn't do anything other than allow samplers to specify certain
And yes it is. I had already done this for |
…namicPPL.jl into tor/default-assume-observe
|
bors r+ |
In the recent breaking release we mistakenly removed the call to `observe(::AbstractSampler, right left, vi)` as a fallback for `DefaultContext`, leading to certain sampler breaking in Turing (TuringLang/Turing.jl#1636). This PR adds back a proper fallback, making overloads such as https://github.com/TuringLang/Turing.jl/blob/tor%2Fdppl-update/src/inference/AdvancedSMC.jl#L353-L356 work as before 0.11.
In the recent breaking release we mistakenly removed the call to
observe(::AbstractSampler, right left, vi)as a fallback forDefaultContext, leading to certain sampler breaking in Turing (TuringLang/Turing.jl#1636).This PR adds back a proper fallback, making overloads such as https://github.com/TuringLang/Turing.jl/blob/tor%2Fdppl-update/src/inference/AdvancedSMC.jl#L353-L356 work as before 0.11.