class_docstr: Set runner's epoch information to the model.
class_docstr_tok: ["Set","runner","'s","epoch","information","to","the","model","."]
code: def after_train_iter(
      self, runner, batch_idx: int, data_batch: None, outputs: None
  ) -> None:
      if self.save_ckpt and self.by_epoch:
          # If it is epoch-based and want to save weights,
          # we must run at least 1 epoch.
          return
      if runner.iter >= self.stop_iter_or_epoch:
          raise RuntimeError("quick exit")
  
imports: from mmengine.hooks import Hook
  from mmdet.registry import HOOKS
label_desc: Use image node_id 2 for calling the FastStopTrainingHook obj's underlying member method code with example usage: obj.after_train_iter(runner, batch_idx, data_batch, outputs) without return types