Thanks for the reply:)
I should have been more precise with my question, though.
I’m trying to look for a way to compute second-order derivatives.
In tensorflow, I would do something like:
tf.gradients(tf.gradients(y, x), x)
As far as I can tell, there’s no way of accomplishing this using y.backward(). That’s why I was wondering if there was a standalone function that differentiated.