tf.keras.losses.serialize

TensorFlow 1 version View source on GitHub
tf.keras.losses.serialize(
    loss
)