openvino.runtime.opset9.convert#

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