Hi Juan!



 Kingsman_Rojas:

Can I define a vector function, say f(x)=(3x, x+2), in such a way that I can then obtain df/dx?


Does jacobian() do what you want?
If you implement your function using (differentiable) pytorch tensor
functions, autograd and jacobian() should compute for you the
full set of partial derivatives.
Best.
K. Frank