Skip to content

Commit 2f9cd44

Browse files
committed
lint
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
1 parent de108ca commit 2f9cd44

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lightning/pytorch/loops/loop.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ def restarting(self) -> bool:
3131
"""Whether the state of this loop was reloaded and it needs to restart."""
3232
return self._restarting
3333

34-
@property
35-
def is_resuming(self) -> bool:
36-
"""Whether we're resuming training from a checkpoint."""
37-
return self._resuming_from_checkpoint
38-
3934
@restarting.setter
4035
def restarting(self, restarting: bool) -> None:
4136
"""Connects this loop's restarting value and its children."""
@@ -44,6 +39,11 @@ def restarting(self, restarting: bool) -> None:
4439
if isinstance(loop, _Loop):
4540
loop.restarting = restarting
4641

42+
@property
43+
def is_resuming(self) -> bool:
44+
"""Whether we're resuming training from a checkpoint."""
45+
return self._resuming_from_checkpoint
46+
4747
def reset_restart_stage(self) -> None:
4848
pass
4949

0 commit comments

Comments
 (0)