ngraph.abs

ngraph.abs(node: Union[_pyngraph.Node, int, float, numpy.ndarray], name: Optional[str] = None) _pyngraph.Node

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

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

  • name – Optional new name for output node.

Returns

New node with Abs operation applied on it.