<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/probability/blob/v0.25.0/tensorflow_probability/python/distributions/kullback_leibler.py) |

Registration and usage mechanisms for KL-divergences.

## Classes

[`class RegisterKL`](https://www.tensorflow.org/probability/api_docs/python/tfp/distributions/RegisterKL): Decorator to register a KL divergence implementation function.

## Functions

[`augment_kl_xent_docs(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/layers/dense_variational_v2/kullback_leibler/augment_kl_xent_docs): Augments doc on tfd.kl_divergence, EachDist.kl_divergence/cross_entropy.

[`kl_divergence(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/distributions/kl_divergence): Get the KL-divergence KL(distribution_a \|\| distribution_b).