From 6bcb2eb0649e631ed8898896ebe8044e87fde45b Mon Sep 17 00:00:00 2001 From: zhezhaoa <1152543959@qq.com> Date: Wed, 1 May 2024 18:56:29 +0800 Subject: [PATCH] Update config.py --- uer/utils/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uer/utils/config.py b/uer/utils/config.py index e247cac..b5d2f6e 100644 --- a/uer/utils/config.py +++ b/uer/utils/config.py @@ -8,7 +8,7 @@ def load_hyperparam(args): Load arguments form argparse and config file Priority: default options < config file < command line args """ - with open(dargs.config_path, mode="r", encoding="utf-8") as f: + with open(args.config_path, mode="r", encoding="utf-8") as f: config_args_dict = json.load(f) args_dict = vars(args)