openvino.runtime.opset4.subtract

openvino.runtime.opset4.subtract(left_node: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], right_node: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], auto_broadcast: str = 'NUMPY', name: Optional[str] = None) openvino._pyopenvino.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.