copapy.grad#

copapy.grad(x, y)#

Returns the partial derivative dx/dy where x needs to be a scalar and y might be a scalar, a list of scalars, a vector, matrix or array. It uses automatic differentiation in reverse-mode.

Overloads:

Element-wise array operations, sum, min, max, dot and matrix products are differentiated by array operations. Convolutions, pooling, sorting and strided copies (transposing, slicing, broadcasting) are not supported.

Parameters:
Returns:

Derivative of x with the type and dimensions of y