Skip to content

Newbie trying to use EvaluationCallback with AutoDiff #1019

Answered by sandwichmaker
delorytheape asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for sharing the details of your problem. A couple of thoughts:

  1. I agree computing the autocorrelation function in each residual is not a great idea. If you are going to do autodiff for all this anyways, then you should just put all the residuals in a single functor that computes a multidimensional residual. That will give you the same or better performance than doing the EvaluationCallback.
  2. If you really want peak performance, then you should do analytic derivatives. You will likely be able to use analytic properties of the FFT to make mathematical shortcuts which autodiff will never be able to. This sort of thing comes up for example when you are trying to differentiate the soluti…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@delorytheape
Comment options

Comment options

You must be logged in to vote
4 replies
@delorytheape
Comment options

@delorytheape
Comment options

@sandwichmaker
Comment options

Answer selected by delorytheape
@delorytheape
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants