tf.keras.saving.serialize_keras_object

Retrieve the config dict by serializing the Keras object.

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.

obj the Keras object to serialize.

A python dict that represents the object. The python dict can be deserialized via deserialize_keras_object().