nnrl/distributions/diag_multivariate_normal.py
def reproduce(self, event):
        """Produce a reparametrized sample with the same value as `event`."""
        loc = self.base_dist.loc
        scale_diag = self.base_dist.scale
        with torch.no_grad():
            eps = (event - loc) / scale_diag
        return loc + scale_diag * eps
Produce a reparametrized sample with the same value as `event`.
Produce a reparametrized sample with the same value as `event`.
Produce a reparametrized sample with the same value as ` event ` .
def reproduce(self, event):
        loc = self.base_dist.loc
        scale_diag = self.base_dist.scale
        with torch.no_grad():
            eps = (event - loc) / scale_diag
        return loc + scale_diag * eps
def reproduce ( self , event ) : loc = self . base_dist . loc scale_diag = self . base_dist . scale with torch . no_grad ( ) : eps = ( event - loc ) / scale_diag return loc + scale_diag * eps
Produce a reparametrized sample with the same value as `event`.
Produce a reparametrized sample with the same value as ` event ` .
"""Produce a reparametrized sample with the same value as `event`."""
self
event