- class mmengine.hooks.RuntimeInfoHook¶
A hook that updates runtime information into message hub.
max_itersfor the training state. Components that cannot access the runner can get runtime information through the message hub.
- after_test_epoch(runner, metrics=None)¶
All subclasses should override this method, if they need any operations after each test epoch.
- after_train_iter(runner, batch_idx, data_batch=None, outputs=None)¶
log_varsin model outputs every iteration.
- after_val_epoch(runner, metrics=None)¶
All subclasses should override this method, if they need any operations after each validation epoch.
Update resumed training state.
Update current epoch information before every epoch.
- before_train_iter(runner, batch_idx, data_batch=None)¶
Update current iter and learning rate information before every iteration.