Apply hessian of neural network to array

This is really what I meant and what I looked for.
I appreciate your help, thank you