tyxe/priors.py
def update_(self, net):
        """Replaces PyroSample attributes on a given PyroModule net according to the hide/expose logic and
        the classes' prior_dist method."""
        for module_name, module in net.named_modules():
            for site_name, site in list(util.named_pyro_samples(module, recurse=False)):
                full_name = module_name + "." + site_name
                if self.expose_fn(module, full_name):
                    prior_dist = self.prior_dist(full_name, module, site)
                    setattr(module, site_name, PyroSample(prior_dist))
Replaces PyroSample attributes on a given PyroModule net according to the hide/expose logic and
        the classes' prior_dist method.
Replaces PyroSample attributes on a given PyroModule net according to the hide/expose logic and
the classes' prior_dist method.
Replaces PyroSample attributes on a given PyroModule net according to the hide / expose logic and the classes ' prior_dist method .
def update_(self, net):
        for module_name, module in net.named_modules():
            for site_name, site in list(util.named_pyro_samples(module, recurse=False)):
                full_name = module_name + "." + site_name
                if self.expose_fn(module, full_name):
                    prior_dist = self.prior_dist(full_name, module, site)
                    setattr(module, site_name, PyroSample(prior_dist))
def update_ ( self , net ) : for module_name , module in net . named_modules ( ) : for site_name , site in list ( util . named_pyro_samples ( module , recurse = False ) ) : full_name = module_name + "." + site_name if self . expose_fn ( module , full_name ) : prior_dist = self . prior_dist ( full_name , module , site ) setattr ( module , site_name , PyroSample ( prior_dist ) )
Replaces PyroSample attributes on a given PyroModule net according to the hide/expose logic and
the classes' prior_dist method.
Replaces PyroSample attributes on a given PyroModule net according to the hide / expose logic and the classes ' prior_dist method .
"""Replaces PyroSample attributes on a given PyroModule net according to the hide/expose logic and
        the classes' prior_dist method."""
self
net