You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why would we need to set the dual numbers inside ydual to a specific value, before overwriting them with f!(ydual, xdual)? Can we just get rid of these steps?
This is causing issues when y has non-bitstype elements, because they may not be initialized the first time that jacobian is called.
Activity
gdalle commentedon Apr 7, 2025
MWE of the error:
devmotion commentedon Apr 7, 2025
Maybe to zero out partials from possible previous invocations (
ydualsis taken from the gradient config)?[-]Why is seeding `y` necessary?[/-][+]Why is seeding `ydual` necessary?[/+]gdalle commentedon Apr 7, 2025
Oh right, because if
f!doesn't touch some parts ofywe want the partials to be zero, and the primals to match whatever was given.Any idea how to stop it from erroring in the MWE above?
devmotion commentedon Apr 7, 2025
Closing as a duplicate of #436.
devmotion commentedon Apr 7, 2025
#743 seems to fix it.