Skip to content

Commit 8b9f7e1

Browse files
deependujhaCopilot
andauthored
Update src/lightning/pytorch/loops/training_epoch_loop.py
Co-authored-by: Copilot <[email protected]>
1 parent 29b722b commit 8b9f7e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lightning/pytorch/loops/training_epoch_loop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def on_run_start(self, data_fetcher: _DataFetcher) -> None:
241241
# 1. Not restarting
242242
# 2. Not resuming from checkpoint (not is_resuming)
243243
# 3. Past first epoch (current_epoch > 0)
244-
if (self.trainer.current_epoch > 0 and not self.trainer.fit_loop.is_resuming) and not self.restarting:
244+
if self.trainer.current_epoch > 0 and not self.trainer.fit_loop.is_resuming and not self.restarting:
245245
iter(data_fetcher) # creates the iterator inside the fetcher
246246

247247
# add the previous `fetched` value to properly track `is_last_batch` with no prefetching

0 commit comments

Comments
 (0)