tf.keras.losses.serialize

TensorFlow 1 version View source on GitHub

Serializes loss function or Loss instance.

loss A Keras Loss instance or a loss function.

Loss configuration dictionary.