class_docstr: Abstract base PyTorch compressor
docstr: To obtain all the to-be-compressed modules.
  
  Returns
  -------
  list
      a list of the layers, each of which is a tuple (`layer`, `config`),
      `layer` is `LayerInfo`, `config` is a `dict`
docstr_tok: ["To","obtain","all","the","to-be-compressed","modules",".","Returns","--","--","--","-","list","a","list","of","the","layers",",","each","of","which","is","a","tuple","(","`","layer","`",",","`","config","`",")",",","`","layer","`","is","`","LayerInfo","`",",","`","config","`","is","a","`","dict","`"]
code: def get_modules_to_compress(self):
      """
      To obtain all the to-be-compressed modules.
  
      Returns
      -------
      list
          a list of the layers, each of which is a tuple (`layer`, `config`),
          `layer` is `LayerInfo`, `config` is a `dict`
      """
      return self.modules_to_compress
  
imports: import types
  import logging
  import torch
  from .None import default_layers
label_desc: Use image node_id 9 for calling the Compressor obj's underlying member method code with example usage: obj.get_modules_to_compress() and returns: self