class_docstr: Used to schedule different compression methods
class_docstr_tok: ["Used","to","schedule","different","compression","methods"]
code: def check_activation_quantization(self):
      # check activation quantization
      aq = self.different_compression_methods[ACTIVATION_QUANTIZATION]
      if not aq[TECHNIQUE_ENABLED]:
          return
      else:
          shared_parameters = aq[SHARED_PARAMETERS]
          if (
              self.training_steps
              >= shared_parameters[TECHNIQUE_SCHEDULE_OFFSET]
          ):
              for group_name, module_name_list, method_parameters in aq[
                  DIFFERENT_GROUPS
              ]:
                  for module_name in module_name_list:
                      module = recursive_getattr(
                          self.model, module_name
                      )
                      module.activation_quantization_enabled = True
              if not self.verbose[ACTIVATION_QUANTIZATION]:
                  logger.info(
                      f"Activation quantization is enabled at step {self.training_steps}"
                  )
                  self.verbose[ACTIVATION_QUANTIZATION] = True
  
file_path: deepspeed/deepspeed/compression/scheduler.py
imports: from .compress import get_module_name
  from .constants import *
  from .helper import recursive_getattr
  from deepspeed.utils import logger
label_desc: Use image node_id 4 for calling the compression_scheduler obj's underlying member method code with example usage: obj.check_activation_quantization() without return types