| View source on GitHub | 
Serialize a Keras object into a JSON-compatible representation.
tf.keras.utils.serialize_keras_object(
    instance
)
  Calls to serialize_keras_object while underneath the SharedObjectSavingScope context manager will cause any objects re-used across multiple layers to be saved with a special shared object ID. This allows the network to be re-created properly during deserialization.
| Args | |
|---|---|
| instance | The object to serialize. | 
| Returns | |
|---|---|
| A dict-like, JSON-compatible representation of the object's config. | 
    © 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/versions/r2.9/api_docs/python/tf/keras/utils/serialize_keras_object