From ada9f9aacbc21237cfd1a05101ccdaa75cbc383d Mon Sep 17 00:00:00 2001 From: zhouneng <zhouneng2@huawei.com> Date: Thu, 21 Oct 2021 10:40:28 +0800 Subject: [PATCH] [transformer]replace print with pprint, which cause eval accuracy 0 --- official/nlp/transformer/src/model_utils/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/official/nlp/transformer/src/model_utils/config.py b/official/nlp/transformer/src/model_utils/config.py index e3a8262e7..5dff477ae 100644 --- a/official/nlp/transformer/src/model_utils/config.py +++ b/official/nlp/transformer/src/model_utils/config.py @@ -122,7 +122,7 @@ def get_config(): args = parse_cli_to_yaml(parser=parser, cfg=default, helper=helper, choices=choices, cfg_path=path_args.config_path) final_config = merge(args, default) pprint(final_config) - print("Please check the above information for the configurations", flush=True) + pprint("Please check the above information for the configurations") return Config(final_config) config = get_config() -- GitLab