docstr: Returns the state of the scheduler as a :class:`dict`.
  
  It contains an entry for every variable in self.__dict__ which
  is not the sparsifier.
docstr_tok: ["Returns","the","state","of","the","scheduler","as","a",":","class",":","`","dict","`",".","It","contains","an","entry","for","every","variable","in","self.__dict__","which","is","not","the","sparsifier","."]
code: 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 sparsifier.
      """
      return {
          key: value
          for key, value in self.__dict__.items()
          if key != "sparsifier"
      }
  
file_path: pytorch/torch/ao/pruning/scheduler/base_scheduler.py
imports: from torch.ao.pruning import BaseSparsifier
  from functools import wraps
  import warnings
  import weakref
label_desc: Use image node_id 2 for calling the BaseScheduler obj's underlying member method code with example usage: obj.state_dict() and returns: unknown