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 05e8cde2b5e9139bf132a422602230ef6305e1a7..b78eca30511752c125a63b5b86f0a7fa88ab6db3 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)