Shortcuts

BaseLoop

class mmengine.runner.BaseLoop(runner, dataloader)[源代码]

Base loop class.

All subclasses inherited from BaseLoop should overwrite the run() method.

参数:
  • runner (Runner) – A reference of runner.

  • dataloader (Dataloader or dict) – An iterator to generate one batch of dataset each iteration.

abstract run()[源代码]

Execute loop.

返回类型:

Any