ngraph.convert_like

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

Return node which casts data node values to the type of another node.

Parameters
  • data – Node which produces the input tensor

  • like – Node which provides the target type information for the conversion

  • name – Optional name for the output node.

Returns

New node performing the conversion operation.