openvino.runtime.opset13.fake_convert¶
- openvino.runtime.opset13.fake_convert(data: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], scale: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], shift: Optional[Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]] = None, destination_type: Literal['f8e4m3', 'f8e5m2'] = 'f8e4m3', name: Optional[str] = None) openvino._pyopenvino.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.