From 67ea0309ec47976f5b2c38280a003a02d3d7abc2 Mon Sep 17 00:00:00 2001 From: yang-minghai22 Date: Thu, 21 Dec 2023 19:52:46 +0800 Subject: [PATCH] [bugfix] fix compare distributed bug --- .../src/python/ptdbg_ascend/compare/distributed_compare.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debug/accuracy_tools/ptdbg_ascend/src/python/ptdbg_ascend/compare/distributed_compare.py b/debug/accuracy_tools/ptdbg_ascend/src/python/ptdbg_ascend/compare/distributed_compare.py index 05e8cde2b5..b78eca3051 100644 --- a/debug/accuracy_tools/ptdbg_ascend/src/python/ptdbg_ascend/compare/distributed_compare.py +++ b/debug/accuracy_tools/ptdbg_ascend/src/python/ptdbg_ascend/compare/distributed_compare.py @@ -53,7 +53,7 @@ def compare_distributed(npu_dump_dir, bench_dump_dir, output_path, **kwargs): name_body, ext = os.path.splitext(pkl_name) pattern = re.compile(f'{name_body}$') match = pattern.match(dump_data_dirname) - if match is None: + if dump_data_dir and match is None: print_error_log('The names of pkl and directory do not match! ' f'Please check the names and remove irrelevant files in {dirname}. ') raise CompareException(CompareException.INVALID_FILE_ERROR) -- Gitee