tf.keras.losses.serialize

tf.keras.losses.serialize(loss)

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