Skip to content

Commit

Permalink
fixing docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
liopeer committed Oct 8, 2023
1 parent 4390ef3 commit 116265b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions diffusion_models/losses/kl_divergence.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ def gaussian_kl(
"""Calculate KL Divergence of 2 Gaussian distributions.
KL divergence between two univariate Gaussians, as derived in [1], with k=1 (dimensionality).
.. math::
D_{KL}(p||q) = \frac{1}{2}\left[\log\frac{|\Sigma_q|}{|\Sigma_p|} - k + (\boldsymbol{\mu_p}-\boldsymbol{\mu_q})^T\Sigma_q^{-1}(\boldsymbol{\mu_p}-\boldsymbol{\mu_q}) + tr\left\{\Sigma_q^{-1}\Sigma_p\right\}\right]
Parameters
----------
Expand Down Expand Up @@ -45,8 +43,6 @@ def log_gaussian_kl(
"""Calculate KL Divergence of 2 Gaussian distributions.
KL divergence between two univariate Gaussians, as derived in [1], with k=1 (dimensionality) and log variances.
.. math::
D_{KL}(p||q) = \frac{1}{2}\left[\log\frac{|\Sigma_q|}{|\Sigma_p|} - k + (\boldsymbol{\mu_p}-\boldsymbol{\mu_q})^T\Sigma_q^{-1}(\boldsymbol{\mu_p}-\boldsymbol{\mu_q}) + tr\left\{\Sigma_q^{-1}\Sigma_p\right\}\right]
Parameters
----------
Expand Down

0 comments on commit 116265b

Please sign in to comment.