(self)
Read the values inside the optimizer for the hyper-parameters.
Read the values inside the optimizer for the hyper-parameters.
Read the values inside the optimizer for the hyper - parameters .
def read_defaults(self) -> None:
        "Read the values inside the optimizer for the hyper-parameters."
        self._beta = None
        if 'lr' in self.opt_keys: self._lr = self.read_val('lr')
        if 'momentum' in self.opt_keys: self._mom = self.read_val('momentum')
        if 'alpha' in self.opt_keys: self._beta = self.read_val('alpha')
        if 'betas' in self.opt_keys:
            self._mom, self._beta = self.read_val('betas')
        if 'weight_decay' in self.opt_keys:
            self._wd = self.read_val('weight_decay')
def read_defaults ( self ) -> None : self . _beta = None if 'lr' in self . opt_keys : self . _lr = self . read_val ( 'lr' ) if 'momentum' in self . opt_keys : self . _mom = self . read_val ( 'momentum' ) if 'alpha' in self . opt_keys : self . _beta = self . read_val ( 'alpha' ) if 'betas' in self . opt_keys : self . _mom , self . _beta = self . read_val ( 'betas' ) if 'weight_decay' in self . opt_keys : self . _wd = self . read_val ( 'weight_decay' )