pymoose.add#

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

Add two values.

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

Parameters
  • lhs – First addend.

  • rhs – Second addend.

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

Returns

Sum of the two inputs.