class_docstr: Logs the number of paramaters and forward pass FLOPs and activations of the model.
code: def get_summary(self):
      return {
          "FLOPS(M)": float(self.num_flops) / 1e6
          if self.num_flops is not None
          else 0,
          "num_activations(M)": float(self.num_activations) / 1e6
          if self.num_activations is not None
          else 0,
          "num_parameters(M)": float(self.num_parameters) / 1e6
          if self.num_parameters is not None
          else 0,
      }
  
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 3 for calling the ModelComplexityHook obj's underlying member method code with example usage: obj.get_summary() and returns: dict