已合并
adaptivemaxpool3dgrad A5整除场景不路由到maxpool3dgrad #6735
adaptivemaxpool3dgrad A5整除场景不路由到maxpool3dgrad #6735
已合并
胡一航创建于 6月29日
胡一航成员
6月29日

描述

adaptivemaxpool3dgrad A5整除场景不路由到maxpool3dgrad
A5采用smit方式,路由之后时间不会减少

关联的Issue

https://gitcode.com/cann/ops-nn/issues/3664

测试

文档更新

类型标签

AI/Agent生成声明

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 胡一航 的贡献)
胡一航成员
6月29日 创建了 pull request,commit 45b66d5c
CANN-robotCANN-robot成员
6月29日 添加了label:stat/needs-squash
CANN-robotCANN-robot成员
6月29日 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
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 /approve or /lgtm
  • Commenting /approve implies 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. 👍

likedislike
胡一航成员
6月29日 评论:

compile

likedislike
胡一航成员
6月29日 update merge request[project id: 7665709, iid: 6735, commit_id: 65c7c5ab48e65e5b47619435492617bb37ff7d8d] virtual merging success
胡一航成员
6月29日 修改标题为 “adaptivemaxpool3dgrad A5整除场景不路由到maxpool3dgrad”,原标题为“fix doc”
胡一航成员
6月29日 修改了pull request 的描述
CANN-robotCANN-robot成员
6月29日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
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执行结束

likedislike
atomgit-bot
atomgit-bot
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.cppaclnn_adaptive_max_pool3d_backward.cpp 中,selfSize <= MAX_INT32OP_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 模式下不进入该特定操作分支。
likedislike
吴瑶成员
6月29日 评论:

/lgtm
/approve

likedislike
CANN-robot
CANN-robot成员
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执行结束

likedislike
CANN-robotCANN-robot成员
6月29日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
6月29日 添加了label:ci-pipeline-passed
atomgit-bot
atomgit-bot
6月29日 评论:

🤖 AI Code Review

⚠️ 自定义模型 Provider 调用失败

本次审查使用的自定义模型 Provider 无法正常调用,已停止重试。

请检查 Provider 配置:

  • Base URL 是否正确、网络是否可达
  • API Key 是否有效
  • 模型名称是否存在

修正配置后,重新触发审查即可。

追踪 ID: task-29316-run-27585

likedislike
范其瑞
范其瑞成员
6月29日 评论:

/lgtm
/approve

likedislike
liubo75成员
6月29日 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
6月29日 添加了label:lgtmapproved
CANN-robotCANN-robot成员
6月29日 合入了pull request