<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/saving/serialization_lib.py#L151-L313) |

Retrieve the config dict by serializing the Keras object.

    tf.keras.utils.serialize_keras_object(
        obj
    )

`serialize_keras_object()` serializes a Keras object to a python dictionary
that represents the object, and is a reciprocal function of
`deserialize_keras_object()`. See `deserialize_keras_object()` for more
information about the config format.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `obj` | the Keras object to serialize. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A python dict that represents the object. The python dict can be deserialized via `deserialize_keras_object()`. ||

<br />