Compute the KL Divergence Between Two Gaussian Distributions.
Computes the KL divergence between univariate normal distributions using the analytical formula, see https://en.wikipedia.org/wiki/Kullback%E2%80%93Leibler_divergence#Multivariate_normal_distributions.
vaeac_kl_normal_normal(p, q)
p
: A torch::distr_normal()
object.q
: A torch::distr_normal()
object.The KL divergence between the two Gaussian distributions.
Lars Henry Berge Olsen
Useful links