PredictionLoop¶
- class pytorch_lightning.loops.dataloader.PredictionLoop[source]¶
Bases:
pytorch_lightning.loops.dataloader.dataloader_loop.DataLoaderLoop
Loop to run over dataloaders for prediction.
- on_run_end()[source]¶
Calls
on_predict_epoch_end
andon_predict_end
hooks and returns results from all dataloaders.
- on_run_start()[source]¶
Calls
_on_predict_model_eval
,_on_predict_start
and_on_predict_epoch_start
hooks.- Return type:
- property dataloaders: Sequence[torch.utils.data.dataloader.DataLoader]¶
Returns all prediction dataloaders.
- Return type: