tf.keras.metrics.serialize

Serializes metric function or Metric instance.

metric A Keras Metric instance or a metric function.

Metric configuration dictionary.