stacked_autoencoder.py
def scalars(self, image):
        """Get dictionary of scalars for logging."""
        prev_latent, recons = self.forward(image)
        scalars = {
            'loss': self._loss(prev_latent, recons),
            'mean_prev_latent': torch.mean(prev_latent),
            'mean_recons': torch.mean(recons),
            'std_prev_latent': torch.std(prev_latent),
            'std_recons': torch.std(recons),
        }
        return scalars
Get dictionary of scalars for logging.
Get dictionary of scalars for logging.
Get dictionary of scalars for logging .
def scalars(self, image):
        prev_latent, recons = self.forward(image)
        scalars = {
            'loss': self._loss(prev_latent, recons),
            'mean_prev_latent': torch.mean(prev_latent),
            'mean_recons': torch.mean(recons),
            'std_prev_latent': torch.std(prev_latent),
            'std_recons': torch.std(recons),
        }
        return scalars
def scalars ( self , image ) : prev_latent , recons = self . forward ( image ) scalars = { 'loss' : self . _loss ( prev_latent , recons ) , 'mean_prev_latent' : torch . mean ( prev_latent ) , 'mean_recons' : torch . mean ( recons ) , 'std_prev_latent' : torch . std ( prev_latent ) , 'std_recons' : torch . std ( recons ) , } return scalars
Get dictionary of scalars for logging.
Get dictionary of scalars for logging .
"""Get dictionary of scalars for logging."""
self
image