The gradient function#

Aliases#

halerium.core.gradient
halerium.core.math.gradient
gradient(output_op, input_op, constant_ops=())#

Derivative.

Parameters:
  • output_op – The output operator of which to compute the derivative.

  • input_op – The input operator, w.r.t. which to compute the derivative.

  • constant_ops – Any operations in the op.-chain assumed constant.

Returns:

operator – The halerium Operator representing the operation.

Return type:

halerium.core.operator.Gradient