How to compute higher order gradients

I’m interested in looking at the hessian of a loss function with respect to the weights of a neural network. Is there a way to do this in Gluon or with the Symbol API? Thanks for the help!

@bschrift please have a look at this discussion, thanks! Obtaining second order derivatives for a function wrt arbitrary parameters in the computation graph

1 Like