parameters: (self)
return_statement: return state_dict
docstring: Returns the state of the scheduler as a :class:`dict`.
  
          It contains an entry for every variable in self.__dict__ which
          is not the optimizer.
          The wrapped scheduler states will also be saved.
docstring_summary: Returns the state of the scheduler as a :class:`dict`.
docstring_tokens: Returns the state of the scheduler as a : class : dict .
function: def state_dict(self):
          """Returns the state of the scheduler as a :class:`dict`.
  
          It contains an entry for every variable in self.__dict__ which
          is not the optimizer.
          The wrapped scheduler states will also be saved.
          """
          state_dict = {key: value for key, value in self.__dict__.items() if key not in ('optimizer', '_schedulers')}
          state_dict['_schedulers'] = [None] * len(self._schedulers)
  
          for idx, s in enumerate(self._schedulers):
              state_dict['_schedulers'][idx] = s.state_dict()
  
          return state_dict
function_tokens: def state_dict ( self ) : state_dict = { key : value for key , value in self . __dict__ . items ( ) if key not in ( 'optimizer' , '_schedulers' ) } state_dict [ '_schedulers' ] = [ None ] * len ( self . _schedulers ) for idx , s in enumerate ( self . _schedulers ) : state_dict [ '_schedulers' ] [ idx ] = s . state_dict ( ) return state_dict