I have a function that looks like this:
def f(x, y):
def g(w):
def h(z):
return z * (w ** 2) * (x + y)
return h
return g
I want to calculate the partial derivatives of f w.r.t (x, y, w, z) at point say (x0, y0, w0, z0) using autograd.
The code is of course in python.
Thanks.