dpctl.tensor.result_type

dpctl.tensor.result_type(*arrays_and_dtypes)[source]

Returns the dtype that results from applying the Type Promotion Rules to the arguments.

Parameters:

arrays_and_dtypes (Union[usm_ndarray, dtype]) – An arbitrary length sequence of usm_ndarray objects or dtypes.

Returns:

The dtype resulting from an operation involving the input arrays and dtypes.

Return type:

dtype