openvino.runtime.opset13.fake_convert#

openvino.runtime.opset13.fake_convert(data: Node | int | float | ndarray, scale: Node | int | float | ndarray, shift: Node | int | float | ndarray | None = None, destination_type: Literal['f8e4m3', 'f8e5m2'] = 'f8e4m3', name: str | None = None) Node#

Return a node which performs FakeConvert.

FakeConvert is experimental and may change in the future. .. warning:: FakeConvert is experimental and may change in the future.

Parameters:
  • data – The node with data tensor with FP16, BF16 or FP32 datatype.

  • scale – Tensor with a scale factor for the data input value, of the same type as the data, and shape Numpy-broadcastable to data.

  • shift – Optional tensor with value to subtract before and add after conversion of the data input value, of the same type as the data, and shape Numpy-broadcastable to data.

  • destination_type – Type to emulate, string of either “f8e4m3” or “f8e5m2”.

  • name – The optional new name for output node.

Returns:

The new node performing FakeConvert operation.