TuringLang / Turing.jl

Bayesian inference with probabilistic programming.
https://turinglang.org
MIT License
2.03k stars 218 forks source link

Attempt fixing `bnn` tests in Ezyme PR #2277

Closed torfjelde closed 2 months ago

torfjelde commented 3 months ago

https://github.com/TuringLang/Turing.jl/blob/cbd5d7949483180f2aa8d37d3f5fccd6fcd81369/test/mcmc/hmc.jl#L106-L121

torfjelde commented 3 months ago

@wsmoses explained that the hvcat call hit due to the syntactic sugar we use in the bnn model won't be an issue if the entire thing is type-stable, so it might be fixed by simply moving the var_prior into the arguments of the model or something. Giviing that a go now.

torfjelde commented 3 months ago

@wsmoses @mhauru

yebai commented 2 months ago

Fixed by 5bfd06d