Pull Request已成功合入, 合并人@ascend-robot
(感谢 haiyan8 的贡献)以下是根据您提交的修改文件推荐的Reviewer和Committer序列,需各模块评审通过后方可合入
| Module List | Reviewers | Committers |
|---|---|---|
| repo-Ascend/pytorch | rain-666, culechan, yanpengquan, chenhao_1209, ShaoFeifan | rain-666, chenhao_1209, wangchao285, wangqiang160, liwei386 |


CLA Signature Pass
@yuhaiyan, thanks for your pull request. All authors of the commits have signed the CLA. 👍


compile


✅ 流水线任务触发成功,正在执行,请稍候。 任务链接[ce5f1a6cd43540ef9b3d9cde0da32683]


问题/功能描述
本次PR旨在修复API兼容性检查工具中的一个逻辑误判问题。原工具在检查函数签名新增参数时,会将所有新增参数都判定为不兼容,导致对特定API torch_npu.profiler.profiler.analyse 新增 max_process_number 参数产生误报。本次修改为该参数提供豁免,确保此类兼容性变更不会触发检查失败。
修改方案描述
修改了 is_not_compatibility 函数中处理新增参数(new_diff_params)的逻辑。针对API torch_npu.profiler.profiler.analyse,在判定不兼容前,新增了一个过滤步骤:从新增参数集合中移除包含 max_process_number 的参数项。仅当过滤后的集合不为空时,才判定为不兼容。此修改确保了 max_process_number 参数的添加被视为兼容性变更,从而消除了误报。


get-log


Review Guide
This Pull-Request Passes Review.
Committers who writed a comment of /approve are: shaoyf, wangchao430.
Reviewers who writed a comment of /lgtm are: shaoyf, wangchao430.


What type of PR is this?
What does this PR do / why do we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewers: