Skip to content

Commit e5711c0

Browse files
SeanNarenBorda
authored andcommitted
Add hydra experimental to correct location
1 parent 6f116cb commit e5711c0

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

pytorch_lightning/utilities/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
_GROUP_AVAILABLE,
3232
_HOROVOD_AVAILABLE,
3333
_HYDRA_AVAILABLE,
34+
_HYDRA_EXPERIMENTAL_AVAILABLE,
3435
_module_available,
3536
_NATIVE_AMP_AVAILABLE,
3637
_OMEGACONF_AVAILABLE,

pytorch_lightning/utilities/imports.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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")

tests/models/test_hparams.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
if _HYDRA_EXPERIMENTAL_AVAILABLE:
3434
from hydra.experimental import compose, initialize
3535

36+
3637
class SaveHparamsModel(BoringModel):
3738
""" Tests that a model can take an object """
3839
def __init__(self, hparams):

0 commit comments

Comments
 (0)