class_docstr: Set runner's epoch information to the model.
class_docstr_tok: ["Set","runner","'s","epoch","information","to","the","model","."]
code: def __init__(self, by_epoch, save_ckpt=False, stop_iter_or_epoch=5):
      self.by_epoch = by_epoch
      self.save_ckpt = save_ckpt
      self.stop_iter_or_epoch = stop_iter_or_epoch
  
imports: from mmengine.hooks import Hook
  from mmdet.registry import HOOKS
label_desc: Use image node_id 1 to create a new FastStopTrainingHook object from inherited base classes: Hook with example: obj = FastStopTrainingHook(by_epoch, save_ckpt, stop_iter_or_epoch)