tf.keras.utils.serialize_keras_object

TensorFlow 2 version View source on GitHub