TuringLang / AdvancedHMC.jl

Robust, modular and efficient implementation of advanced Hamiltonian Monte Carlo algorithms
https://turinglang.org/AdvancedHMC.jl/
MIT License
237 stars 41 forks source link

Fix metric resizing #232

Closed treigerm closed 3 years ago

treigerm commented 3 years ago

This is one way to fix #231, I have also added a simple test.

treigerm commented 3 years ago

Thank you for the quick review! I made the suggested change.

yebai commented 3 years ago

Would you like to bump the version number from v0.2.26 to v0.2.27 so that a new bugfix release can be tagged after merging this PR?

https://github.com/TuringLang/AdvancedHMC.jl/blob/master/Project.toml#L3

treigerm commented 3 years ago

Done!

yebai commented 3 years ago

Thanks, this should be fixed after a new release is tagged:

https://github.com/TuringLang/AdvancedHMC.jl/commit/e00b6867a6b28baec580e67f71ae05d79342defe#commitcomment-44692011