-
Notifications
You must be signed in to change notification settings - Fork 19
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
Error if init_params
has not been specified for all chains
#125
Comments
Note that the check in |
Can you explain why we should use it? In those two cases we call |
It doesn't 😬 julia> map(+, 1:2, 3:5)
2-element Vector{Int64}:
4
6 Alternatively we can use |
Oops, I'm not sure why but I was convinced that |
Oh true, haha. I had the exact opposite impression of what you did: I knew |
It seems we don't error correctly for certain multi-chain sample calls; in particular,
Serial
andMCMCDistributed
seem to have this issueAbstractMCMC.jl/src/sample.jl
Lines 522 to 526 in d7c549f
AbstractMCMC.jl/src/sample.jl
Lines 469 to 473 in d7c549f
while
MCMCThreads
does not, as it makes of_first_or_nothing
:https://github.com/TuringLang/AbstractMCMC.jl/blob/d7c549fe41a80c1f164423c7ac458425535f624b/src/sample.jl#L315C21-L316
AbstractMCMC.jl/src/sample.jl
Lines 542 to 549 in d7c549f
Doesn't seem like there's a reason why we don't use
_first_or_nothing
forMCMCSerial
andMCMCDistributed
; guessing it's just an oversight?Ref: TuringLang/Turing.jl#2079
The text was updated successfully, but these errors were encountered: