tf.keras.utils.serialize_keras_object

tf.keras.utils.serialize_keras_object(instance)

Defined in tensorflow/python/keras/utils/generic_utils.py.