Pull Request has been successfully merged by CANN-robot.
(Thank you for 陈晨's contribution.)/compile


| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


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 |
|---|---|---|
| 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
chen_chenn, thanks for your pull request. All authors of the commits have signed the CLA. 👍


流水线分析报告 — ops-nn run#16935
流水线: https://gitcode.com/cann/ops-nn/actions/runs/2fcdb71364c940a8b20fc93427caa005 | PR#13463 | 2026-11-03 10:42:23 ~ 10:45:50 | 失败 Job 1 个
定界结论: 代码问题 / 代码检查错误
- 失败类型: 代码问题
- 根因: pre-commit 检查项
clang-format不通过,Hook 自动改写了 2 个 C++ 示例文件,说明提交代码未按仓库.clang-format格式化 - 处置建议: 通知 PR 提交者修复
- 本地执行
pre-commit run clang-format --files pooling/max_pool3_d/examples/arch35/test_geir_max_pool_3d.cpp pooling/max_pool3_d/examples/test_geir_max_pool_3d.cpp,将自动格式化结果一并提交后重新触发流水线 - 参考链接: 本地执行 pre-commit 指导
- 本地执行
- 排除项: 同 Job 内 trim trailing whitespace / end-of-file-fixer / check large files / check merge conflicts / detect private key / codespell / OAT Compliance Check 均 Passed;
check_yaml、check_json、ruff-check、ruff-format因无匹配文件 Skipped,与本次失败无关。仅 CodeCheck_precommit 一个 Job 失败,无下游级联 Job 失败
失败根因分析
根因 #1: 代码问题 / 代码检查错误 — clang-format 未通过(2 个文件被改写)
- 判据: pre-commit 检查项不通过: clang-format(本地执行 pre-commit run clang-format 修复)
- 定位步骤:
3_precommit.log - 影响 Job: CodeCheck_precommit
- 根因证据(日志原文):
clang-format.............................................................Failed
- hook id: clang-format
- files were modified by this hook
Formatting [1/2] pooling/max_pool3_d/examples/arch35/test_geir_max_pool_3d.cpp
Formatting [2/2] pooling/max_pool3_d/examples/test_geir_max_pool_3d.cpp
...
❌ 存在部分文件格式错误
::error::precommit.py 异常退出: exit code=1, signal=null
- 说明: PR 分支
fix/max_pool3_d_geir_example_soc950新增/修改的上述 2 个示例文件未按.clang-format(配置为--style=file --verbose -i)格式化。CI 只做检测不回写,需提交者本地执行 clang-format 后重新推送
结构化定界摘要
[{"repo": "ops-nn", "run_number": 16935, "Failed_Type": "代码问题", "Failed_Sub_Type": "代码检查错误", "Failed_Reason": "pre-commit 的 clang-format 检查未通过,pooling/max_pool3_d/examples/arch35/test_geir_max_pool_3d.cpp 与 pooling/max_pool3_d/examples/test_geir_max_pool_3d.cpp 未按 .clang-format 格式化,hook 改写了文件导致检查失败", "evidence": "clang-format.............................................................Failed / Formatting [1/2] pooling/max_pool3_d/examples/arch35/test_geir_max_pool_3d.cpp / Formatting [2/2] pooling/max_pool3_d/examples/test_geir_max_pool_3d.cpp", "suggestion": "本地执行 pre-commit run clang-format 修复上述 2 个文件并提交后重新触发流水线", "jobs": "CodeCheck_precommit"}]
由门禁失败定界分析自动生成 | repo: ops-nn | run: 2fcdb71364c940a8b20fc93427caa005 | PR#13463


/compile


| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


/lgtm
/approve


您好,pr合入已准备就绪,请尽快联系committer进行检视,谢谢!
@liubo75 @kevin_huang1234 @yangyang016 @Nice_try @chenxingyu18 @qianzehong @wang-xing001 @liuchuangdev @u010470851


/lgtm


描述
问题
执行 bash build.sh --run_example max_pool3_d graph --example_name=max_pool_3d --soc=ascend950 失败,tiling 报错 MaxPool3D: output shape dim = 1, should be equal 5。
原因分析
arch35 示例存在三处缺陷,逐层暴露:
主要改动
ksize/strides 按 NDHWC 语义完全自洽,已对照 infershape 与 tiling 公式逐一验证);显式设置 data_format="NDHWC"。
该版本保留在 git 历史中;且本算子在仓内无 arch22/910b 适配代码,故不新增 arch22 示例副本。
关联的Issue
https://gitcode.com/cann/ops-nn/issues/8015
测试
文档更新
类型标签
AI/Agent生成声明