Open March-08 opened 3 years ago
How to compute the second-order derivative of the loss function wrt W and b? In particular, I need to compute only the diagonal of the Hessian matrix, so each entry hkk of that matrix. So given w ∈ W, I need his second derivative. d²L/dw²
d²L/dw²
You may be interested in https://github.com/FluxML/Zygote.jl/pull/959.
How to compute the second-order derivative of the loss function wrt W and b? In particular, I need to compute only the diagonal of the Hessian matrix, so each entry hkk of that matrix. So given w ∈ W, I need his second derivative.
d²L/dw²