class_docstr: Memory profiler hook recording memory information including virtual
  memory, swap memory, and the memory of the current process.
  
  Args:
      interval (int): Checking interval (every k iterations).
          Default: 50.
class_docstr_tok: ["Memory","profiler","hook","recording","memory","information","including","virtual","memory",",","swap","memory",",","and","the","memory","of","the","current","process",".","Args",":","interval","(","int",")",":","Checking","interval","(","every","k","iterations",")",".","Default",":","50","."]
docstr: Regularly record memory information.
  
  Args:
      runner (:obj:`Runner`): The runner of the testing process.
      batch_idx (int): The index of the current batch in the test loop.
      data_batch (dict, optional): Data from dataloader.
          Defaults to None.
      outputs (Sequence[:obj:`DetDataSample`], optional):
          Outputs from model. Defaults to None.
docstr_tok: ["Regularly","record","memory","information",".","Args",":","runner","(",":","obj",":","`","Runner","`",")",":","The","runner","of","the","testing","process",".","batch_idx","(","int",")",":","The","index","of","the","current","batch","in","the","test","loop",".","data_batch","(","dict",",","optional",")",":","Data","from","dataloader",".","Defaults","to","None",".","outputs","(","Sequence","[",":","obj",":","`","DetDataSample","`","]",",","optional",")",":","Outputs","from","model",".","Defaults","to","None","."]
code: def after_test_iter(
      self,
      runner: Runner,
      batch_idx: int,
      data_batch: Optional[dict] = None,
      outputs: Optional[Sequence[DetDataSample]] = None,
  ) -> None:
      """Regularly record memory information.
  
      Args:
          runner (:obj:`Runner`): The runner of the testing process.
          batch_idx (int): The index of the current batch in the test loop.
          data_batch (dict, optional): Data from dataloader.
              Defaults to None.
          outputs (Sequence[:obj:`DetDataSample`], optional):
              Outputs from model. Defaults to None.
      """
      if self.every_n_inner_iters(batch_idx, self.interval):
          self._record_memory_information(runner)
  
file_path: mmdetection/mmdet/engine/hooks/memory_profiler_hook.py
imports: from typing import Optional, Sequence
  from mmengine.hooks import Hook
  from mmengine.runner import Runner
  from mmdet.registry import HOOKS
  from mmdet.structures import DetDataSample
label_desc: Use image node_id 5 for calling the MemoryProfilerHook obj's underlying member method code with example usage: obj.after_test_iter(runner, batch_idx, data_batch, outputs) without return types