class_docstr: Abstract base PyTorch compressor
docstr: Compress the model with algorithm implemented by subclass.
  
  The model will be instrumented and user should never edit it after calling this method.
  `self.modules_to_compress` records all the to-be-compressed layers
  
  Returns
  -------
  torch.nn.Module
      model with specified modules compressed.
docstr_tok: ["Compress","the","model","with","algorithm","implemented","by","subclass",".","The","model","will","be","instrumented","and","user","should","never","edit","it","after","calling","this","method",".","`","self.modules_to_compress","`","records","all","the","to-be-compressed","layers","Returns","--","--","--","-","torch.nn.Module","model","with","specified","modules","compressed","."]
code: def compress(self):
      """
      Compress the model with algorithm implemented by subclass.
  
      The model will be instrumented and user should never edit it after calling this method.
      `self.modules_to_compress` records all the to-be-compressed layers
  
      Returns
      -------
      torch.nn.Module
          model with specified modules compressed.
      """
      return self.bound_model
  
imports: import types
  import logging
  import torch
  from .None import default_layers
label_desc: Use image node_id 7 for calling the Compressor obj's underlying member method code with example usage: obj.compress() and returns: self