deepy/trainers/trainers.py
def training_params(self):
        """
        Get parameters to be optimized.
        """
        params = self.network.parameters
        # Freeze parameters
        if self.config.fixed_parameters:
            logging.info("fixed parameters: %s" % ", ".join(map(str, self.config.fixed_parameters)))
            params = [p for p in params if p not in self.config.fixed_parameters]
        return params
def training_params(self):
        params = self.network.parameters
        # Freeze parameters
        if self.config.fixed_parameters:
            logging.info("fixed parameters: %s" % ", ".join(map(str, self.config.fixed_parameters)))
            params = [p for p in params if p not in self.config.fixed_parameters]
        return params
def training_params ( self ) : params = self . network . parameters # Freeze parameters if self . config . fixed_parameters : logging . info ( "fixed parameters: %s" % ", " . join ( map ( str , self . config . fixed_parameters ) ) ) params = [ p for p in params if p not in self . config . fixed_parameters ] return params
Get parameters to be optimized.
Get parameters to be optimized .