File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/lightning/pytorch/loops Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -31,11 +31,6 @@ def restarting(self) -> bool:
31
31
"""Whether the state of this loop was reloaded and it needs to restart."""
32
32
return self ._restarting
33
33
34
- @property
35
- def is_resuming (self ) -> bool :
36
- """Whether we're resuming training from a checkpoint."""
37
- return self ._resuming_from_checkpoint
38
-
39
34
@restarting .setter
40
35
def restarting (self , restarting : bool ) -> None :
41
36
"""Connects this loop's restarting value and its children."""
@@ -44,6 +39,11 @@ def restarting(self, restarting: bool) -> None:
44
39
if isinstance (loop , _Loop ):
45
40
loop .restarting = restarting
46
41
42
+ @property
43
+ def is_resuming (self ) -> bool :
44
+ """Whether we're resuming training from a checkpoint."""
45
+ return self ._resuming_from_checkpoint
46
+
47
47
def reset_restart_stage (self ) -> None :
48
48
pass
49
49
You can’t perform that action at this time.
0 commit comments