已合并
adaptivemaxpool3dgrad A5整除场景不路由到maxpool3dgrad #6735
胡一航创建于 6月29日
adaptivemaxpool3dgrad A5整除场景不路由到maxpool3dgrad #6735
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 胡一航 的贡献)6月29日 添加了label:stat/needs-squash
6月29日 添加了label:cann-cla/yes
CANN-robot
6月29日 评论:
6月29日 评论:
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
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| */*/docs/acl*.md | ✅ 刘波, 范其瑞, 吴瑶 (3/2) | ✅ 吴瑶 (1/1) |
| pooling | ✅ 刘波, 范其瑞 (2/2) | ✅ 刘波 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
huyihang1117, thanks for your pull request. All authors of the commits have signed the CLA. 👍


6月29日 添加了label:ci-pipeline-running
CANN-robot
6月29日 评论:
6月29日 评论:
流水线任务触发成功
任务链接 [293feaf66cc84a38842e40b596ee883f][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86_mobile_station | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_experimental | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_950 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_950 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Pre | ✅ SUCCESS | >>>>> | |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910b | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910c | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_950 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_harmony-infer-chs-nn | ✅ SUCCESS | >>>>> | |
| UT_Test_ophost | ✅ SUCCESS | ||
| UT_Test_opapi | ✅ SUCCESS | ||
| UT_Test_kernel | ✅ SUCCESS | ||
| UT_Test_opgraph | ✅ SUCCESS | ||
| PreSmoke_A900 | ✅ SUCCESS | >>>>> | |
| PreSmoke_ATK_Test_A2 | ✅ SUCCESS | >>>>> |
[2026-06-29 16:55:13] CI执行结束


atomgit-bot
6月29日 评论:
6月29日 评论:
变更摘要
此 PR 主要针对 adaptive_max_pool2d/3d_backward 算子的反向实现,引入 Ops::NN::AclnnUtil::IsRegbase() 条件判断,在 RegBase 模式下跳过 selfSize 大小上限校验以及 maxPool3DGradWithArgmax 分支路径,同时修正了错误日志中的数值描述(将 2^32 - 1 更正为 2^31 - 1)。
主要改动
CheckSelfShapeSupport中增加 RegBase 模式跳过逻辑: 在aclnn_adaptive_max_pool2d_backward.cpp和aclnn_adaptive_max_pool3d_backward.cpp中,selfSize <= MAX_INT32的OP_CHECK校验被包裹在if (!Ops::NN::AclnnUtil::IsRegbase())条件内,使得 RegBase 模式下不再强制执行该大小限制。- 修正错误日志中的上限值: 两处
OP_LOGE中的上限描述从2^32 - 1改为2^31 - 1,与MAX_INT32的实际值保持一致。 selectLevelZeroOperation中限制 argmax 分支的使用: 在adaptive_max_pool_common.cpp中,useMaxPool3DGradWithArgmax条件新增&& !Ops::NN::AclnnUtil::IsRegbase()约束,确保 RegBase 模式下不进入该特定操作分支。


CANN-robot
6月29日 评论:
6月29日 评论:
流水线任务触发成功
任务链接 [e1268952c04a4fb79f3ca8a3e097dde7][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| codecheck_checkpr | ✅ SUCCESS | ||
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_style | ✅ SUCCESS | >>>>> | |
| codecheck_precommit | ⚠️ WARNING | >>>>> | >>>>> |
| SCA | ✅ SUCCESS | >>>>> |
[2026-06-29 16:50:04] CI执行结束


6月29日 删除了label:ci-pipeline-running
6月29日 添加了label:ci-pipeline-passed
atomgit-bot
6月29日 评论:
6月29日 评论:
范其瑞
6月29日 评论:
6月29日 评论:
/lgtm
/approve


6月29日 添加了label:lgtmapproved
6月29日 合入了pull request
描述
adaptivemaxpool3dgrad A5整除场景不路由到maxpool3dgrad
A5采用smit方式,路由之后时间不会减少
关联的Issue
https://gitcode.com/cann/ops-nn/issues/3664
测试
文档更新
类型标签
AI/Agent生成声明