pymoose.sub#

pymoose.sub(lhs, rhs, placement=None)[source]#

Subtract two values.

Equivalent to lhs - rhs for the two inputs. If the inputs are tensors, the subtraction is performed elementwise.

Parameters
  • lhs – Minuend.

  • rhs – Subtrahend.

  • placement – An optional Placement to pin this operation to.

Returns

Difference of the two inputs.