W3cubDocs

/TensorFlow

tf.keras.utils.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.

Args
obj the Keras object to serialize.
Returns
A python dict that represents the object. The python dict can be deserialized via deserialize_keras_object().

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/keras/utils/serialize_keras_object