File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 38
38
from pytorch_lightning .core .optimizer import LightningOptimizer
39
39
from pytorch_lightning .core .saving import ALLOWED_CONFIG_TYPES , ModelIO , PRIMITIVE_TYPES
40
40
from pytorch_lightning .core .step_result import Result
41
+ from pytorch_lightning .trainer .states import RunningStage
41
42
from pytorch_lightning .utilities import rank_zero_warn
42
43
from pytorch_lightning .utilities .apply_func import apply_to_collection , convert_to_tensors
43
44
from pytorch_lightning .utilities .device_dtype_mixin import DeviceDtypeModuleMixin
@@ -169,7 +170,7 @@ def automatic_optimization(self) -> bool:
169
170
return self ._automatic_optimization
170
171
171
172
@property
172
- def running_stage (self ):
173
+ def running_stage (self ) -> Optional [ RunningStage ] :
173
174
return self .trainer ._running_stage if self .trainer else None
174
175
175
176
@automatic_optimization .setter
You can’t perform that action at this time.
0 commit comments