ngraph.opset5.subtract

ngraph.opset5.subtract(left_node: Union[_pyngraph.Node, int, float, numpy.ndarray], right_node: Union[_pyngraph.Node, int, float, numpy.ndarray], auto_broadcast: str = 'NUMPY', name: Optional[str] = None) _pyngraph.Node

Return node which applies f(x) = A-B to the input nodes element-wise.

Parameters
  • left_node – The node providing data for left hand side of operator.

  • right_node – The node providing data for right hand side of operator.

  • auto_broadcast – The type of broadcasting that specifies mapping of input tensor axes to output shape axes. Range of values: numpy, explicit.

  • name – The optional name for output node.

Returns

The new output node performing subtraction operation on both tensors element-wise.