How to compute higher order gradients


#1

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!


#2

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