ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

tf.keras.losses.serialize

Serializes loss function or Loss instance.

loss A Keras Loss instance or a loss function.

Loss configuration dictionary.