|View source on GitHub|
Get the KL-divergence KL(distribution_a || distribution_b). (deprecated)
`tf.contrib.distributions.kl_divergence`Compat aliases for migration
See Migration guide for more details.
tf.distributions.kl_divergence( distribution_a, distribution_b, allow_nan_stats=True, name=None )
If there is no KL method registered specifically for
type(distribution_b), then the class hierarchies of these types are
If one KL method is registered between any pairs of classes in these two parent hierarchies, it is used.
If more than one such registered method exists, the method whose registered classes have the shortest sum MRO paths to the input types is used.
If more than one such shortest path exists, the first method
identified in the search is used (favoring a shorter MRO distance to
||The first distribution.|
||The second distribution.|
A Tensor with the batchwise KL-divergence between
If no KL method is defined for distribution types