Gradient of NN with respect to inputs

Currently, I’m using jacobian instead of gradient because of a vector output, and it works