class_docstr: Logs the number of paramaters and forward pass FLOPs and activations of the model.
code: def __init__(self) -> None:
      super().__init__()
      self.num_flops = None
      self.num_activations = None
      self.num_parameters = None
  
file_path: ClassyVision/classy_vision/hooks/model_complexity_hook.py
imports: import logging
  from classy_vision.generic.profiler import ClassyProfilerNotImplementedError, compute_activations, compute_flops, count_params
  from classy_vision.hooks import register_hook
  from classy_vision.hooks.classy_hook import ClassyHook
label_desc: Use image node_id 1 to create a new ModelComplexityHook object from inherited base classes: ClassyHook with example: obj = ModelComplexityHook()