Closed bbbales2 closed 3 years ago
I overlooked this... no I don't know the reason for the -1. Is this is still ongoing?
Just tested it. It still happens yeah.
Hmm...if my memory serves me right then @bob-carpenter could have done this change in response to a bug report from mine; but I am blank on that. Maybe @bob-carpenter recalls the context? If not, then we should probably apply your suggested fix which sounds sensible to me.
if my memory serves me right
git blame
confirms: issue #278, pull #280
looks to me as if it would still be ok to not do the -1 thing unless I am overlooking something. Thanks @nhuurre for digging that up.
Description
I think there's a bug in
set_zero_all_adjoints_nested
where we zero onevari
from the stack above.Test code is:
Fix is to not do the
- 1
in theset_zero_all_adjoints_nested
code:Current output is:
@wds15 do you know the reason for these minus 1s?
Current Version:
v3.4.0