generated/torch_uncertainty.losses.KLDiv
Download Notebook
Notebook
View on GitHub
GitHub
KLDiv
-
class torch_uncertainty.losses.KLDiv(model)[source]
KL divergence loss for Bayesian Neural Networks. Gathers the KL from the
modules computed in the forward passes.
- Parameters:
model (nn.Module) – Bayesian Neural Network