openvino.runtime.opset7.sign

openvino.runtime.opset7.sign(node: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], name: Optional[str] = None) openvino._pyopenvino.Node

Perform element-wise sign operation.

Parameters
  • node – One of: input node, array or scalar.

  • name – The optional new name for output node.

Returns

The node with mapped elements of the input tensor to -1 (if it is negative), 0 (if it is zero), or 1 (if it is positive).