TestLoop¶ class mmengine.runner.TestLoop(runner, dataloader, evaluator, fp16=False)[source]¶ Loop for test. Parameters: runner (Runner) – A reference of runner. dataloader (Dataloader or dict) – A dataloader object or a dict to build a dataloader. evaluator (Evaluator or dict or list) – Used for computing metrics. fp16 (bool) – Whether to enable fp16 testing. Defaults to False. run()[source]¶ Launch test. Return type: dict run_iter(idx, data_batch)[source]¶ Iterate one mini-batch. Parameters: data_batch (Sequence[dict]) – Batch of data from dataloader. Return type: None