Closed tpapp closed 7 years ago
Thanks @tpapp, yes, I am aware of this issue, and have opened a relevant issue at ReverseDiffSource a couple of months ago, see https://github.com/JuliaDiff/ReverseDiffSource.jl/issues/49 - it used to work with the previous version of ReverseDiffSource, @fredo-dedup offered to sort this out from his end, when he finds the chance.
This has been sorted via DiffBase and ReverseDiff.
The following is a code snippet from a model. It works perfectly with
autodiff=:forward
, but fails with:reverse
:The function
structural_ll_raw
simply computes the log likelihood. I am wondering I am running into something obvious, ie that it is a closure?Though my actual code is long, if the issue is not obvious I will make a self-contained example (just let me know).