ngraph.round

ngraph.round(data: Union[_pyngraph.Node, int, float, numpy.ndarray], mode: str = 'half_to_even', name: Optional[str] = None) _pyngraph.Node

Apply Round operation on each element of input tensor.

Parameters
  • data – The tensor providing input data.

  • mode – Rule to round halfway cases. If set to ‘half_to_even’ then halfs round to the nearest even integer or rounding in such a way that the result heads away from zero if mode attribute is ‘half_away_from_zero`.

  • name – An optional name of the output node.

:return:: The new node with Round operation applied on each element.