<br />

<button value="stable" default="">See Stable</button> <button value="nightly">See Nightly</button>

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/keras-team/keras/tree/v3.15.1/keras/src/backend/common/dtypes.py#L280-L324) |

Returns the type from applying the Keras type promotion rules.

    tf.keras.backend.result_type(
        *dtypes
    )

In general, each argument is first parsed by [`backend.standardize_dtype`](https://www.tensorflow.org/api_docs/python/tf/keras/backend/standardize_dtype),
and the resulting dtype is determined by the least upper bound of the type
promotion lattice.

> [!NOTE]
> **Note:** This function attempts to match the result of `jnp.result_type`.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `dtypes` | Input dtypes. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| The result dtype. ||

<br />

#### Examples:

    x = keras.ops.ones((1,), dtype="bfloat16")
    keras.backend.result_type(x.dtype, int)
    "bfloat16"

    x = keras.ops.ones((1,), dtype="int32")
    y = keras.ops.ones((1,), dtype="float32")
    keras.backend.result_type(x.dtype, y.dtype)
    "float32"

    z= keras.ops.ones((1,), dtype='complex64')
    keras.backend.result_type(z.dtype, int)
    "float64"