stacked_autoencoder.py
def forward(self, x, noise=True):
        """Autoencode input x, optionally with latent noise."""
        z = self.encode(x)
        if noise:
            z = z + self._noise.sample()
        recons = self.decode(z)
        return recons
Autoencode input x, optionally with latent noise.
Autoencode input x, optionally with latent noise.
Autoencode input x optionally with latent noise .
def forward(self, x, noise=True):
        z = self.encode(x)
        if noise:
            z = z + self._noise.sample()
        recons = self.decode(z)
        return recons
def forward ( self , x , noise = True ) : z = self . encode ( x ) if noise : z = z + self . _noise . sample ( ) recons = self . decode ( z ) return recons
Autoencode input x, optionally with latent noise.
Autoencode input x optionally with latent noise .
"""Autoencode input x, optionally with latent noise."""
self
x
noise