Prepared sparse hessian!
calls prepare_gradient
at every invocation?
#376
Labels
core
Related to the core utilities of the package
Trying to do some profiling on one of my usecases in Optimization.jl I observed that
hessian!
call with the extras being passed ends callingprepare_gradient
on every invocation which is surprising, I am hitting this code path https://github.com/gdalle/DifferentiationInterface.jl/blob/main/DifferentiationInterface/src/sparse/hessian.jl#L117 -> https://github.com/gdalle/DifferentiationInterface.jl/blob/main/DifferentiationInterface/src/second_order/hvp_batched.jl#L145 -> https://github.com/gdalle/DifferentiationInterface.jl/blob/main/DifferentiationInterface/src/second_order/hvp.jl#L61 -> https://github.com/gdalle/DifferentiationInterface.jl/blob/main/DifferentiationInterface/src/first_order/gradient.jl#L82The text was updated successfully, but these errors were encountered: