Merged
refactor(fusion_config): 融合规则MaxPoolV3GradFusionPass重命名为MaxPoolGradFusionPass #826
refactor(fusion_config): 融合规则MaxPoolV3GradFusionPass重命名为MaxPoolGradFusionPass #826
Merged
小王!Add on Sep 7
小王!
Sep 7

描述

ops-nn 仓已将 MaxPoolGrad --> MaxPoolV3Grad 的融合规则由 MaxPoolV3GradFusionPass 重命名为 MaxPoolGradFusionPass(cann/ops-nn!9934),使规则名与其实际匹配的源算子 MaxPoolGrad 一致,并与正向配对的 MaxPoolFusionPass(MaxPool --> MaxPoolV3)命名规则对齐。

本仓有两处配置按 pass 名字符串索引该规则。若不同步修改,重命名后优先级配置与支持列表都将匹配不到该规则,导致其优先级失配、在 3510 平台上不再被使能。

改动方法

文件 位置 改动
scripts/fusion_config/fusion_pass/config/fusion_config.json Priority/GraphFusion/Main(第 212 行) 键名 MaxPoolV3GradFusionPass → MaxPoolGradFusionPass,优先级取值 4380 保持不变
scripts/fusion_config/fusion_pass/config/support_fusion_pass.json 3510 平台支持列表(第 2 行) 对应项同步重命名,列表项数 137 不变,顺序不变

不涉及的点

  • 仅重命名 pass 名字符串,未改动优先级数值、平台归属与列表顺序。
  • 其余 MaxPool 系列规则均未改动: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 文件均通过 json.load 解析校验,格式合法。
  • 全仓回扫 MaxPoolV3GradFusionPass 关键字,已无残留。
  • 确认 MaxPoolGradFusionPass 这一名称在本仓原先不存在,重命名后无键名冲突、无列表重复项。
  • 逐项比对:support_fusion_pass.json 中 3510 列表项数 137 前后一致,5102 列表 69 项未变动;fusion_config.json 中 7 条 MaxPool 相关规则仅目标项变化,其余 6 条键名与优先级数值均未变。
  • pre-commit:OAT 合规检查通过。clang-format hook 因 types_or: [c++, c] 对本次纯 JSON 改动不适用(且本环境无法访问其 github 源),已跳过。

文档更新

无。

类型标签

AI/Agent生成声明

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for 小王!'s contribution.)
小王!小王!
Sep 7 Created pull request, commit b5c9c061
atomgit-bot
atomgit-bot
Sep 7 Comments:

🤖 正在生成合并请求摘要,请稍候…

likedislike
Incorrect?
atomgit-bot
atomgit-bot
Sep 7 Comments:

🤖 AI 代码检视正在进行中,请稍候…

likedislike
Incorrect?
CANN-robotCANN-robotCollaborators
Sep 7 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
Sep 7 Comments:

CLA Signature Pass

qq_52056150, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
CANN-robot
CANN-robotCollaborators
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 /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)
likedislike
CANN-robotCANN-robotCollaborators
Sep 7 Set pengjiahao96,zhou-qilong,wangrui_,rxtfeng,loov1,jia0liang,zl_hw,songkai111,pingchuantang,llimwang,gubaocheng as approver
CANN-robotCANN-robotCollaborators
Sep 7 Set pengjiahao96,zhou-qilong,wangrui_,rxtfeng,loov1,jia0liang,zl_hw,songkai111,pingchuantang,llimwang,gubaocheng as approver
小王!
小王!
Sep 7 Comments:

compile

likedislike
小王!小王!
Sep 7 Pre merge succeeded (commit_id: f3cf332a6d8086ed9a65fb858d871706820f0413)
CANN-robot
CANN-robotCollaborators
Sep 7 Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
Sep 7 Added label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Sep 7 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Sep 7 Added label: ci-pipeline-passed
TangPC
TangPCCollaborators
Sep 7 Comments:

/lgtm
/approve

likedislike
CANN-robotCANN-robotCollaborators
Sep 7 Added label: approved
RuiWang_
RuiWang_Collaborators
Sep 7 Comments:

/lgtm
/approve

likedislike
CANN-robotCANN-robotCollaborators
Sep 7 Added label: lgtm
CANN-robotCANN-robotCollaborators
Sep 7 Merged pull request