type_promote_arrays#

ivy.type_promote_arrays(x1, x2, /)[source]#

Type promote the input arrays, returning new arrays with the shared correct data type.

Parameters:
  • x1 (Union[Array, NativeArray]) – the first of the two arrays to type promote

  • x2 (Union[Array, NativeArray]) – the second of the two arrays to type promote

Return type:

Tuple

Returns:

ret1, ret2 – The input arrays after type promotion