Merged
refactor(fusion_config): 融合规则MaxPoolV3GradFusionPass重命名为MaxPoolGradFusionPass #826
小王!Add on Sep 7
refactor(fusion_config): 融合规则MaxPoolV3GradFusionPass重命名为MaxPoolGradFusionPass #826
Merged
Pull Request has been successfully merged by CANN-robot.
(Thank you for 小王!'s contribution.)atomgit-bot
Sep 7 Comments:
Sep 7 Comments:
🤖 正在生成合并请求摘要,请稍候…


Incorrect?
atomgit-bot
Sep 7 Comments:
Sep 7 Comments:
🤖 AI 代码检视正在进行中,请稍候…


Incorrect?
Sep 7 Added label: cann-cla/yes
CANN-robot
Sep 7 Comments:
Sep 7 Comments:
CANN-robot
Sep 7 Comments:
Sep 7 Comments:
Thanks for your pull-request.
The full list of commands accepted by me can be found at here.
You can get sig-info at here.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-cann/opbase | ✅ 汤平川, 王瑞 (2/2) | ✅ 汤平川, 王瑞 (2/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)


Sep 7 Set pengjiahao96,zhou-qilong,wangrui_,rxtfeng,loov1,jia0liang,zl_hw,songkai111,pingchuantang,llimwang,gubaocheng as approver
Sep 7 Set pengjiahao96,zhou-qilong,wangrui_,rxtfeng,loov1,jia0liang,zl_hw,songkai111,pingchuantang,llimwang,gubaocheng as approver
Sep 7 Set pengjiahao96,zhou-qilong,wangrui_,rxtfeng,loov1,jia0liang,zl_hw,songkai111,pingchuantang,llimwang,gubaocheng as approver
Sep 7 Set pengjiahao96,zhou-qilong,wangrui_,rxtfeng,loov1,jia0liang,zl_hw,songkai111,pingchuantang,llimwang,gubaocheng as approver
小王!
Sep 7 Comments:
Sep 7 Comments:
compile


Sep 7 Pre merge succeeded (commit_id: f3cf332a6d8086ed9a65fb858d871706820f0413)
CANN-robot
Sep 7 Comments:
Sep 7 Comments:
| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


Sep 7 Added label: ci-pipeline-running
Sep 7 Removed label: ci-pipeline-running
Sep 7 Added label: ci-pipeline-passed
TangPC
Sep 7 Comments:
Sep 7 Comments:
/lgtm
/approve


Sep 7 Added label: approved
RuiWang_
Sep 7 Comments:
Sep 7 Comments:
/lgtm
/approve


Sep 7 Added label: lgtm
Sep 7 Merged pull request
描述
ops-nn 仓已将
MaxPoolGrad --> MaxPoolV3Grad的融合规则由MaxPoolV3GradFusionPass重命名为MaxPoolGradFusionPass(cann/ops-nn!9934),使规则名与其实际匹配的源算子MaxPoolGrad一致,并与正向配对的MaxPoolFusionPass(MaxPool --> MaxPoolV3)命名规则对齐。本仓有两处配置按 pass 名字符串索引该规则。若不同步修改,重命名后优先级配置与支持列表都将匹配不到该规则,导致其优先级失配、在 3510 平台上不再被使能。
改动方法
scripts/fusion_config/fusion_pass/config/fusion_config.jsonPriority/GraphFusion/Main(第 212 行)MaxPoolV3GradFusionPass→MaxPoolGradFusionPass,优先级取值4380保持不变scripts/fusion_config/fusion_pass/config/support_fusion_pass.json3510平台支持列表(第 2 行)不涉及的点
MaxPoolFusionPass(4370)、MaxPoolWithArgmaxV3FusionPass(4365)、MaxPoolGradWithArgmaxV3FusionPass(4364)、MaxPoolQuantProcessFusionPass(4011)、PadMaxPoolFusionPass(4189)、PaddMaxPoolFusionPass(4210)。support_fusion_pass.json的5102平台列表不含该规则(仅含MaxPoolFusionPass),未涉及。关联的Issue
配套 MR:cann/ops-nn!9934(ops-nn 侧规则重命名)。本 MR 需与其配套合入。
测试
json.load解析校验,格式合法。MaxPoolV3GradFusionPass关键字,已无残留。MaxPoolGradFusionPass这一名称在本仓原先不存在,重命名后无键名冲突、无列表重复项。support_fusion_pass.json中3510列表项数 137 前后一致,5102列表 69 项未变动;fusion_config.json中 7 条 MaxPool 相关规则仅目标项变化,其余 6 条键名与优先级数值均未变。clang-formathook 因types_or: [c++, c]对本次纯 JSON 改动不适用(且本环境无法访问其 github 源),已跳过。文档更新
无。
类型标签
AI/Agent生成声明