tf.keras.metrics.KLDivergence

Computes Kullback-Leibler divergence metric between y_true and y_pred.

Inherits From: Mean, Metric, Layer, Module

metric = y_true * log(y_true / y_pred)

name (Optional) string name of the metric instance.
dtype (Optional) data type of the metric result.

Standalone usage: