Google I/O returns May 18-20! Reserve space and build your schedule Register now

tf.keras.losses.serialize

Serializes loss function or Loss instance.

loss A Keras Loss instance or a loss function.

Loss configuration dictionary.