File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed
pytorch_lightning/utilities Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 3131 _GROUP_AVAILABLE ,
3232 _HOROVOD_AVAILABLE ,
3333 _HYDRA_AVAILABLE ,
34+ _HYDRA_EXPERIMENTAL_AVAILABLE ,
3435 _module_available ,
3536 _NATIVE_AMP_AVAILABLE ,
3637 _OMEGACONF_AVAILABLE ,
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ def _module_available(module_path: str) -> bool:
4545_NATIVE_AMP_AVAILABLE = _module_available ("torch.cuda.amp" ) and hasattr (torch .cuda .amp , "autocast" )
4646_OMEGACONF_AVAILABLE = _module_available ("omegaconf" )
4747_HYDRA_AVAILABLE = _module_available ("hydra" )
48+ _HYDRA_EXPERIMENTAL_AVAILABLE = _module_available ("hydra.experimental" )
4849_HOROVOD_AVAILABLE = _module_available ("horovod.torch" )
4950_TORCHTEXT_AVAILABLE = _module_available ("torchtext" )
5051_XLA_AVAILABLE = _module_available ("torch_xla" )
Original file line number Diff line number Diff line change 3333if _HYDRA_EXPERIMENTAL_AVAILABLE :
3434 from hydra .experimental import compose , initialize
3535
36+
3637class SaveHparamsModel (BoringModel ):
3738 """ Tests that a model can take an object """
3839 def __init__ (self , hparams ):
You can’t perform that action at this time.
0 commit comments