Commit 78ef5ebb authored by Shreyan Chowdhury's avatar Shreyan Chowdhury
Browse files

bug fix in config parser

parent 5a5a798c
......@@ -20,13 +20,23 @@ def run(hparams):
exp = Experiment(save_dir=CURR_RUN_PATH)
def setup_config():
def print_config():
global config
st = '---------CONFIG--------\n'
for k in config.keys():
st += k+':'+str(config.get(k))+'\n'
return st
conf = hparams.config
if conf is not None:
conf_func = globals()[conf]
logger.error(f"Config {conf} not defined")
global config
# parameters used in the baseline (read from and
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