Skip to content
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

Note on draws_out in mcmc::hmc() #14

Open
Tadinu opened this issue Nov 4, 2024 · 0 comments
Open

Note on draws_out in mcmc::hmc() #14

Tadinu opened this issue Nov 4, 2024 · 0 comments

Comments

@Tadinu
Copy link

Tadinu commented Nov 4, 2024

Hi @kthohr,

Thanks alot for the very cool repo!
May I just point out some notes, and would so appreciate if you could help clarify.

Using mcmc as a shared library,
(1) In hmc_normal_autodiff example, when I turn main() into a class member function, it was observed that draws_out needs to be static or class member, otherwise a double free or corruption error is thrown after mcmc::hmc() is called.

(2) Also in, may you tell why the result of autodiff::gradient() can't be assigned directly to *grad_out?
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant