ngraph.opset1.convert

ngraph.opset1.convert(data: Union[_pyngraph.Node, int, float, numpy.ndarray], destination_type: Union[str, type, numpy.dtype], name: Optional[str] = None) _pyngraph.Node

Return node which casts input node values to specified type.

Parameters
  • data – Node which produces the input tensor.

  • destination_type – Provides the target type for the conversion.

  • name – Optional name for the output node.

Returns

New node performing the conversion operation.