Commit 90b758f7 authored by Jeremy Reizenstein's avatar Jeremy Reizenstein Committed by Facebook GitHub Bot
Browse files

hydra fix

Summary: Workaround for oddity with new hydra.

Reviewed By: davnov134

Differential Revision: D39280639

fbshipit-source-id: 76e91947f633589945446db93cf2dbc259642f8a
parent df36223d
...@@ -83,6 +83,9 @@ from .impl.utils import seed_all_random_engines ...@@ -83,6 +83,9 @@ from .impl.utils import seed_all_random_engines
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
# workaround for https://github.com/facebookresearch/hydra/issues/2262
_RUN = hydra.types.RunMode.RUN
if version.parse(hydra.__version__) < version.Version("1.1"): if version.parse(hydra.__version__) < version.Version("1.1"):
raise ValueError( raise ValueError(
f"Hydra version {hydra.__version__} is too old." f"Hydra version {hydra.__version__} is too old."
...@@ -136,6 +139,7 @@ class Experiment(Configurable): # pyre-ignore: 13 ...@@ -136,6 +139,7 @@ class Experiment(Configurable): # pyre-ignore: 13
default_factory=lambda: { default_factory=lambda: {
"run": {"dir": "."}, # Make hydra not change the working dir. "run": {"dir": "."}, # Make hydra not change the working dir.
"output_subdir": None, # disable storing the .hydra logs "output_subdir": None, # disable storing the .hydra logs
"mode": _RUN,
} }
) )
......
...@@ -9,6 +9,7 @@ hydra: ...@@ -9,6 +9,7 @@ hydra:
run: run:
dir: . dir: .
output_subdir: null output_subdir: null
mode: RUN
data_source_ImplicitronDataSource_args: data_source_ImplicitronDataSource_args:
dataset_map_provider_class_type: ??? dataset_map_provider_class_type: ???
data_loader_map_provider_class_type: SequenceDataLoaderMapProvider data_loader_map_provider_class_type: SequenceDataLoaderMapProvider
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment