Missed TensorFlow World? Check out the recap. Learn more

tf.keras.losses.serialize

tf.keras.losses.serialize(loss)

Defined in tensorflow/python/keras/losses.py.