diff --git a/core/trainers/framework/runner.py b/core/trainers/framework/runner.py index b383ff98ab97dead44be541b7852df3eb8a2addb..d11a9c0daeb2f6d1a66c5bd757a77c1cea77d582 100644 --- a/core/trainers/framework/runner.py +++ b/core/trainers/framework/runner.py @@ -69,7 +69,8 @@ class RunnerBase(object): dataset=reader, fetch_list=fetch_vars, fetch_info=fetch_alias, - print_period=fetch_period) + print_period=fetch_period, + debug=envs.get_global_env("debug", False)) else: metrics = model_class.get_metrics() if metrics: @@ -81,7 +82,8 @@ class RunnerBase(object): dataset=reader, fetch_list=fetch_vars, fetch_info=fetch_alias, - print_period=fetch_period) + print_period=fetch_period, + debug=envs.get_global_env("debug", False)) def _executor_dataloader_train(self, model_dict, context): model_name = model_dict["name"]