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.
1 parent 5c0b122 commit e124950Copy full SHA for e124950
src/lightning/pytorch/loops/training_epoch_loop.py
@@ -235,9 +235,9 @@ def reset(self) -> None:
235
236
def on_run_start(self, data_fetcher: _DataFetcher) -> None:
237
# `iter()` was called once in `FitLoop.setup_data()` already
238
- # Only call iter() if:
239
- # 1. Not restarting AND
240
- # 2. Not resuming from checkpoint (not _is_resuming) AND
+ # Only call `iter()` if all following cases:
+ # 1. Not restarting
+ # 2. Not resuming from checkpoint (not _is_resuming)
241
# 3. Past first epoch (current_epoch > 0)
242
if (self.trainer.current_epoch > 0 and not self.trainer.fit_loop._is_resuming) and not self.restarting:
243
iter(data_fetcher) # creates the iterator inside the fetcher
0 commit comments