Commit 21f96aa8 authored by Kapil Krishnakumar's avatar Kapil Krishnakumar Committed by Facebook GitHub Bot
Browse files

Backout D47502855

Summary:
Pull Request resolved: https://github.com/facebookresearch/d2go/pull/597

Report of items being broken on D47580212

Reviewed By: crassirostris

Differential Revision: D47580502

fbshipit-source-id: 899221774cc92aef7fd4f37354171932b09494b6
parent 95e429a1
......@@ -8,7 +8,6 @@ from d2go.config.config import (
CfgNode,
CONFIG_CUSTOM_PARSE_REGISTRY,
CONFIG_SCALING_METHOD_REGISTRY,
convert_cfg_to_dict,
load_full_config_from_file,
temp_defrost,
temp_new_allowed,
......@@ -21,7 +20,6 @@ __all__ = [
"CONFIG_SCALING_METHOD_REGISTRY",
"CfgNode",
"auto_scale_world_size",
"convert_cfg_to_dict",
"load_full_config_from_file",
"reroute_config_path",
"temp_defrost",
......
......@@ -190,13 +190,3 @@ def load_full_config_from_file(filename: str) -> CfgNode:
cfg = loaded_cfg.get_default_cfg()
cfg.merge_from_other_cfg(loaded_cfg)
return cfg
def convert_cfg_to_dict(cfg):
if not isinstance(cfg, CfgNode):
return cfg
else:
cfg_dict = dict(cfg)
for k, v in cfg_dict.items():
cfg_dict[k] = convert_cfg_to_dict(v)
return cfg_dict
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