tf.keras.losses.serialize

Serializes loss function or Loss instance.

loss A Keras Loss instance or a loss function.

Loss configuration dictionary.