EvaluationLoop¶
- class pytorch_lightning.loops.dataloader.EvaluationLoop[source]¶
Bases:
abc.ABC
,Generic
[pytorch_lightning.loops.base.T
]Loops over all dataloaders for evaluation.
- on_run_start(*args, **kwargs)[source]¶
Runs the
_on_evaluation_model_eval
,_on_evaluation_start
and_on_evaluation_epoch_start
hooks.- Return type
- on_skip()[source]¶
The function to run when
run()
should be skipped, determined by the condition inskip
.- Return type
- Returns
the default output value of
on_run_end()
- property dataloaders: Sequence[torch.utils.data.dataloader.DataLoader]¶
Returns the validation or test dataloaders.
- property done: bool¶
Returns whether all dataloaders are processed or evaluation should be skipped altogether.
- property num_dataloaders: int¶
Returns the total number of dataloaders.
- property skip: bool¶
Returns whether the evaluation should be skipped.