How to calculate the Jacobian matrix of a neural network?

I found these threads that might help you: