Skip to content

Commit e124950

Browse files
committed
update wording in the comments.
Signed-off-by: sudipto baral <[email protected]>
1 parent 5c0b122 commit e124950

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lightning/pytorch/loops/training_epoch_loop.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,9 @@ def reset(self) -> None:
235235

236236
def on_run_start(self, data_fetcher: _DataFetcher) -> None:
237237
# `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
238+
# Only call `iter()` if all following cases:
239+
# 1. Not restarting
240+
# 2. Not resuming from checkpoint (not _is_resuming)
241241
# 3. Past first epoch (current_epoch > 0)
242242
if (self.trainer.current_epoch > 0 and not self.trainer.fit_loop._is_resuming) and not self.restarting:
243243
iter(data_fetcher) # creates the iterator inside the fetcher

0 commit comments

Comments
 (0)