We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PredictionEpochLoop
1 parent 1f32923 commit 98fcf1eCopy full SHA for 98fcf1e
pytorch_lightning/loops/epoch/prediction_epoch_loop.py
@@ -68,8 +68,9 @@ def on_run_start(
68
void(dataloader_iter, dataloader_idx)
69
self._dl_max_batches = dl_max_batches
70
self._num_dataloaders = num_dataloaders
71
- self._seen_batch_indices = self._get_batch_indices(dataloader_idx)
72
self.return_predictions = return_predictions
+ # this call requires that `self.return_predictions` is set
73
+ self._seen_batch_indices = self._get_batch_indices(dataloader_idx)
74
75
def advance(
76
self,
0 commit comments