Skip to content

Commit 29b722b

Browse files
committed
update
1 parent 4e7d486 commit 29b722b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/ci-tests-pytorch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
- { os: "macOS-14", pkg-name: "pytorch", python-version: "3.12", pytorch-version: "2.7" }
7676
- { os: "ubuntu-22.04", pkg-name: "pytorch", python-version: "3.12", pytorch-version: "2.7" }
7777
- { os: "windows-2022", pkg-name: "pytorch", python-version: "3.12", pytorch-version: "2.7" }
78-
timeout-minutes: 50
78+
timeout-minutes: 60
7979
env:
8080
PACKAGE_NAME: ${{ matrix.pkg-name }}
8181
TORCH_URL: "https://download.pytorch.org/whl/cpu/"

src/lightning/pytorch/loops/loop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def restarting(self, restarting: bool) -> None:
4141

4242
@property
4343
def is_resuming(self) -> bool:
44-
"""Whether we're resuming training from a checkpoint."""
44+
"""Indicates whether training is being resumed from a checkpoint."""
4545
return self._resuming_from_checkpoint
4646

4747
def reset_restart_stage(self) -> None:

src/lightning/pytorch/loops/training_epoch_loop.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,10 @@ def reset(self) -> None:
237237

238238
def on_run_start(self, data_fetcher: _DataFetcher) -> None:
239239
# `iter()` was called once in `FitLoop.setup_data()` already
240-
# Only call `iter()` if all following cases:
241-
# 1. Not restarting
242-
# 2. Not resuming from checkpoint (not is_resuming)
243-
# 3. Past first epoch (current_epoch > 0)
240+
# Call `iter()` again only when:
241+
# 1. Not restarting
242+
# 2. Not resuming from checkpoint (not is_resuming)
243+
# 3. Past first epoch (current_epoch > 0)
244244
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

0 commit comments

Comments
 (0)