openvino.runtime.opset11.convert

openvino.runtime.opset11.convert(data: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], destination_type: Union[str, type, numpy.dtype, openvino._pyopenvino.Type], 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.