Open baggepinnen opened 3 years ago
Yeah this is an issue with how the transformation from real space to constrained space is constructed. Essentially, at the moment only 0- and 1-dimensional distributions are supported by that constructor. I got the fix though, just a sec!
https://github.com/TuringLang/Turing.jl/pull/1545
Hopefully we'll get the this merged ASAP, but it's a fairly simple change so in the meantime you could just copy-paste the def of Vec
and the redefinitions of meanfield
and bijector
from the file:)
I'm getting a method error when trying to run
where
clamp_sim
is a fairly complicated model relying on a private package. The model samples okay with theMH
sampler and is differentiable with ForwardDiff. I hope the following stack trace is useful. If more info is required, I can try to reduce the model a bit, but I'm afraid I don't know enough about Turing/Bijectors to have any idea of what has gone wrong.