Hi Sameer,
I am trying to debug my jacobian computation and would like to use the gradient checker. For this, I understand I need to compute the residuals inside of the evaluate function (I currently precompute the residuals in the EvaluationCallback).
Intuitively, I was tempted to call PrepareForEvaluation inside of the Evaluate function for every error term and to then turn on the gradient checker. This does not work: my residuals are evaluated as -nan if I call PrepareForEvaluation in Evaluate.
I suspect this is due to the residual being a function of all the parameters in the problem.
Is there a better way debugging my jacobians with autodiff?
Thank you!