It actually seems like n_leapfrog__
is not tracking anything like the number of log_prob
evaluations… For example, if I run for 1 warmup and 1 sample, my C++ instrumentation shows that log_prob
is executed 36 times, but I get n_leapfrog__
set to 1 for the one sample that gets output.
Anyone have other ideas for tracking this within Stan or is my instrumented C++ the best way to go?