openvino.runtime.opset14.convert_promote_types¶
- openvino.runtime.opset14.convert_promote_types(left_node: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], right_node: Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], promote_unsafe: bool = False, pytorch_scalar_promotion: bool = False, u64_integer_promotion_target: Union[str, openvino._pyopenvino.Type] = 'f32') openvino._pyopenvino.Node ¶
Return a node performing conversion to common type based on promotion rules.
- Parameters
left_node – input node with type to be promoted to common one.
right_node – input node with type to be promoted to common one.
promote_unsafe – Bool attribute whether to allow promotions that might result in bit-widening, precision loss and undefined behaviors.
pytorch_scalar_promotion – Bool attribute whether to promote scalar input to type provided by non-scalar input when number format is matching.
u64_integer_promotion_target – Element type attribute to select promotion result when inputs are u64 and signed integer.
- Returns
The new node performing ConvertPromoteTypes operation.