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 3838from pytorch_lightning .core .optimizer import LightningOptimizer
3939from pytorch_lightning .core .saving import ALLOWED_CONFIG_TYPES , ModelIO , PRIMITIVE_TYPES
4040from pytorch_lightning .core .step_result import Result
41+ from pytorch_lightning .trainer .states import RunningStage
4142from pytorch_lightning .utilities import rank_zero_warn
4243from pytorch_lightning .utilities .apply_func import apply_to_collection , convert_to_tensors
4344from pytorch_lightning .utilities .device_dtype_mixin import DeviceDtypeModuleMixin
@@ -169,7 +170,7 @@ def automatic_optimization(self) -> bool:
169170 return self ._automatic_optimization
170171
171172 @property
172- def running_stage (self ):
173+ def running_stage (self ) -> Optional [ RunningStage ] :
173174 return self .trainer ._running_stage if self .trainer else None
174175
175176 @automatic_optimization .setter
You can’t perform that action at this time.
0 commit comments