promote_types_of_inputs#

ivy.promote_types_of_inputs(x1, x2, /, *, array_api_promotion=False)[source]#

Promote the dtype of the given native array inputs to a common dtype based on type promotion rules.

While passing float or integer values or any other non-array input to this function, it should be noted that the return will be an array-like object. Therefore, outputs from this function should be used as inputs only for those functions that expect an array-like or tensor-like objects, otherwise it might give unexpected results.

Return type:

Tuple[NativeArray, NativeArray]