class_docstr: Implementation of the Profiler wrapper for the legacy autograd profiler:
  the schedule does not exist in this profiler and must be replaced
code: def __init__(self, profiler, wait: int, warmup: int, active: int):
      super().__init__(profiler=profiler)
      self.start_iteration = wait + warmup
      self.end_iteration = self.start_iteration + active
      self.current_iteration = 0
      self.started = False
  
imports: import functools
  import logging
  import os
  from contextlib import contextmanager
  from vissl.utils.layer_memory_tracking import null_context
label_desc: Use image node_id 1 to create a new AutoGradProfiler object from inherited base classes: Profiler with example: obj = AutoGradProfiler(profiler, wait, warmup, active)