Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

tf.keras.metrics.serialize

TensorFlow 1 version View source on GitHub
tf.keras.metrics.serialize(
    metric
)