已合并
Fixed test_compatibility.py #28608
haiyan8创建于 2025年12月25日
Fixed test_compatibility.py #28608
已合并
共 1 个文件变更+4-0
| @@ -104,6 +104,10 @@ def is_not_compatibility(base_str, new_str, api_str=None): | |||
| 104 | 104 | ||
| 105 | # case: add params | 105 | # case: add params |
| 106 | new_diff_params = set(new_params) - set(base_params) | 106 | new_diff_params = set(new_params) - set(base_params) |
| 107 | + # special case | ||
| 108 | + if api_str == "torch_npu.profiler.profiler.analyse" and new_diff_params: | ||
| 109 | + delete_special = [elem for elem in new_diff_params if "max_process_number" not in elem] | ||
| 110 | + new_diff_params = delete_special | ||
| 107 | if new_diff_params: | 111 | if new_diff_params: |
| 108 | return True | 112 | return True |
| 109 | 113 | ||