openvino.runtime.opset9.convert

openvino.runtime.opset9.convert(data: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], destination_type: Union[str, type, numpy.dtype], name: Optional[str] = None) openvino._pyopenvino.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.