(self)
Helper method to initialize the solver.
Helper method to initialize the solver.
Helper method to initialize the solver .
def init_solver(self):
        """ Helper method to initialize the solver. """
        self.solver = TfSolver(loss_scalar=self.loss_scalar,
                               solver_name=self._hyperparams['solver_type'],
                               base_lr=self._hyperparams['lr'],
                               lr_policy=self._hyperparams['lr_policy'],
                               momentum=self._hyperparams['momentum'],
                               weight_decay=self._hyperparams['weight_decay'],
                               fc_vars=self.fc_vars,
                               last_conv_vars=self.last_conv_vars)
        self.saver = tf.train.Saver()
def init_solver ( self ) : self . solver = TfSolver ( loss_scalar = self . loss_scalar , solver_name = self . _hyperparams [ 'solver_type' ] , base_lr = self . _hyperparams [ 'lr' ] , lr_policy = self . _hyperparams [ 'lr_policy' ] , momentum = self . _hyperparams [ 'momentum' ] , weight_decay = self . _hyperparams [ 'weight_decay' ] , fc_vars = self . fc_vars , last_conv_vars = self . last_conv_vars ) self . saver = tf . train . Saver ( )