Skip to content

Single-pass value, derivative and second derivative #296

Closed Answered by gdalle
gerlero asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @gerlero,
I remember your PR to AbstractDifferentiation implementing this functionality (JuliaDiff/AbstractDifferentiation.jl#122). At the moment, DifferentiationInterface doesn't offer it, and second-order operators have to be computed separately.
I've been meaning to add value_gradient_and_hessian for a while, but only two backends have optimized implementations so far: ForwardDiff and ReverseDiff. As for value_derivative_and_second_derivative, only ForwardDiff can make it in a single pass (that I'm aware of). It's definitely possible, but I haven't gotten around to it, precisely because you get no benefits at all except for a single backend. I think TaylorDiff might also be efficien…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@adrhill
Comment options

@gerlero
Comment options

@gdalle
Comment options

@gerlero
Comment options

@gdalle
Comment options

Answer selected by gerlero
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
3 participants