From 7dbffcd6f488f30d1d8afb4932e40e1834e1f506 Mon Sep 17 00:00:00 2001 From: Yang Zhang Date: Wed, 17 Jul 2019 18:11:21 +0800 Subject: [PATCH] Fix command line parsing for non module options (#2839) --- ppdet/utils/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppdet/utils/cli.py b/ppdet/utils/cli.py index 2df1a0fa8..665a29254 100644 --- a/ppdet/utils/cli.py +++ b/ppdet/utils/cli.py @@ -65,7 +65,7 @@ class ArgsParser(ArgumentParser): s = s.strip() k, v = s.split('=') if '.' not in k: - config[k] = v + config[k] = yaml.load(v, Loader=yaml.Loader) else: keys = k.split('.') config[keys[0]] = {} -- GitLab