From c462f884119c71e16e3d486d4efdf342ccb88164 Mon Sep 17 00:00:00 2001 From: Linwei-Ying Date: Mon, 28 Jul 2025 17:08:15 +0800 Subject: [PATCH] out params logger bugfix --- debug/accuracy_tools/msprobe/core/compare/compare_cli.py | 4 ++-- debug/accuracy_tools/msprobe/core/compare/utils.py | 2 +- .../msprobe/mindspore/compare/ms_graph_compare.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/debug/accuracy_tools/msprobe/core/compare/compare_cli.py b/debug/accuracy_tools/msprobe/core/compare/compare_cli.py index bbe93c745b..08af3aab60 100644 --- a/debug/accuracy_tools/msprobe/core/compare/compare_cli.py +++ b/debug/accuracy_tools/msprobe/core/compare/compare_cli.py @@ -28,10 +28,10 @@ def compare_cli(args): npu_path = input_param.get("npu_path", None) bench_path = input_param.get("bench_path", None) if not npu_path: - logger.error(f"Missing npu_path in configuration file {args.input_path}, please check!") + logger.error(f"Missing npu_path in input configuration file, please check!") raise CompareException(CompareException.INVALID_PATH_ERROR) if not bench_path: - logger.error(f"Missing bench_path in configuration file {args.input_path}, please check!") + logger.error(f"Missing bench_path in input configuration file, please check!") raise CompareException(CompareException.INVALID_PATH_ERROR) frame_name = args.framework auto_analyze = not args.compare_only diff --git a/debug/accuracy_tools/msprobe/core/compare/utils.py b/debug/accuracy_tools/msprobe/core/compare/utils.py index 8acbd0b129..c0b0783da9 100644 --- a/debug/accuracy_tools/msprobe/core/compare/utils.py +++ b/debug/accuracy_tools/msprobe/core/compare/utils.py @@ -651,7 +651,7 @@ def compare_distributed_inner(npu_dump_dir, bench_dump_dir, output_path, compare npu_path = extract_json(npu_data_dir, file_type) bench_path = extract_json(bench_data_dir, file_type) if npu_path == "" or bench_path == "": - logger.debug(f'Did not find paired {file_type} in {npu_data_dir} and {bench_data_dir},' + logger.debug(f'Did not find paired {file_type} in {nr} and {br},' ' skip comparing.') continue dump_result_param = { diff --git a/debug/accuracy_tools/msprobe/mindspore/compare/ms_graph_compare.py b/debug/accuracy_tools/msprobe/mindspore/compare/ms_graph_compare.py index 62b8551ae4..fd54b4df70 100644 --- a/debug/accuracy_tools/msprobe/mindspore/compare/ms_graph_compare.py +++ b/debug/accuracy_tools/msprobe/mindspore/compare/ms_graph_compare.py @@ -331,7 +331,7 @@ class GraphMSComparator: bench_data_list.extend(data_list) if npu_mode == GraphMode.ERROR_MODE or bench_mode == GraphMode.ERROR_MODE: - logger.warning(f"Data_path {npu_data_path} or {bench_data_path} is not exist.") + logger.warning(f"Data path: npu_data_path or bench_data_path does not exist.") return [], '' if npu_mode != bench_mode: logger.error(f"NPU mode {npu_mode} not equal to MATCH mode {bench_mode}.") -- Gitee