Have a question? Connect with the community at the TensorFlow Forum Visit Forum

tf.keras.losses.serialize

Serializes loss function or Loss instance.

loss A Keras Loss instance or a loss function.

Loss configuration dictionary.