torchbayesian.bnn.utils#
Short description.
Functionals#
Description.
Enables only the dropout layers of a module, even in eval mode. |
Bayesian Conversion Backend#
Short description.
Replaces a tensor (parameter or buffer) in a module by registering a stochastic reparametrization module in its place. |
|
This class wraps the variational posterior module and handles safety checks for the replacement of the parameter or buffer by the variational posterior and its forward call. |
Short description.
Creates an instance of a 'VariationalPosterior' subclass to replace a given tensor. |
|
Creates an instance of a 'Prior' subclass. |
Posterior and Prior Customization#
Description.
This class is a base class for object factories. |
|
This class is a base class for object factories. |