<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/dtype_policies/__init__.py#L27-L39) |

Serializes `DTypePolicy` instance.

    tf.keras.dtype_policies.serialize(
        dtype_policy
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `dtype_policy` | A Keras `DTypePolicy` instance. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| `DTypePolicy` configuration dictionary. ||

<br />