torchbayesian.bnn#
Short description.
Containers#
This class is a Torch 'nn.Module' container that reparametrizes in-place the 'nn.Parameter' parameters of any torch model or module with a variational posterior, and allows computation of the KL divergence. |
Layers#
Description.
This class is a Torch 'nn.Module' container that reparametrizes in-place the 'nn.Parameter' parameters of any torch model or module with a variational posterior, and allows computation of the KL divergence. |
Bayesian Dropout Layers#
Description.
This class is an implementation of 'torch.nn.AlphaDropout' that remains active in eval mode. |
|
This class is an implementation of 'torch.nn.Dropout' that remains active in eval mode. |
|
This class is an implementation of 'torch.nn.Dropout1d' that remains active in eval mode. |
|
This class is an implementation of 'torch.nn.Dropout2d' that remains active in eval mode. |
|
This class is an implementation of 'torch.nn.Dropout3d' that remains active in eval mode. |
|
This class is an implementation of 'torch.nn.FeatureAlphaDropout' that remains active in eval mode. |
Variational Posteriors#
Description.
This class serves as a base class for all variational posteriors used for Bayes by Backprop (BBB) variational inference (VI). |
|
This class is a diagonal Gaussian variational posterior. |
|
This class is a diagonal Gaussian variational posterior whose mean parameter is initialized from an existing tensor. |
Priors#
Description.
This class serves as a base class for all priors used for Bayes by backprop (BBB) variational inference (VI). |
|
This class is a diagonal Gaussian prior distribution used for Bayes by Backprop (BBB). |