已合并
回退pooling算子 #6415
回退pooling算子 #6415
已合并
丛吉钰创建于 6月23日
丛吉钰
丛吉钰成员
6月23日

描述

回退pooling,由于该算子未从cann仓完全迁出,导致的配置文件冲突

关联的Issue

#3506

测试

文档更新

类型标签

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 丛吉钰 的贡献)
丛吉钰丛吉钰成员
6月23日 创建了 pull request,commit b7ea00c0
CANN-robotCANN-robot成员
6月23日 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
6月23日 评论:

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
*/*/op_host/*_def.cpp 汤磊, 陈琦, 唐玮玮 (3/2) 汤磊 (1/1)
pooling 陈琦, 唐玮玮 (2/2) 陈琦, 唐玮玮 (2/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

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

likedislike
丛吉钰
丛吉钰成员
6月23日 评论:

compile

likedislike
丛吉钰丛吉钰成员
6月23日 update merge request[project id: 7665709, iid: 6415, commit_id: 29b1d465c58a71bfb0126020e4e0b0761b3b3cc3] virtual merging success
丛吉钰丛吉钰成员
6月23日 修改了pull request 的描述
CANN-robotCANN-robot成员
6月23日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
6月23日 评论:

流水线任务触发成功
任务链接 [6692a06196c44b3ab1bdf7616e2ababd][流水线指导]

任务名称状态日志下载链接
Compile_Ascend_X86_ubuntu24 ✅ SUCCESS >>>>> >>>>>
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_Ascend_X86_mobile_station_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_950_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_single_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_experimental_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_950_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_910b ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_910c ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_950 ✅ SUCCESS >>>>> >>>>>
Compile_classify ✅ SUCCESS >>>>>
UT_Test_opgraph ✅ SUCCESS
API_Check ✅ SUCCESS >>>>>

[2026-06-23 17:16:56]    CI执行结束

likedislike
CANN-robot
CANN-robot成员
6月23日 评论:

流水线任务触发成功
任务链接 [89ae81deaf334512b258a25e2040abfa][流水线指导]

任务名称状态日志下载链接
codecheck ❌ FAILED >>>>>
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 >>>>>
likedislike
丛吉钰丛吉钰成员
6月23日 修改了pull request 的描述
丛吉钰丛吉钰成员
6月23日 修改了pull request 的描述
丛吉钰
丛吉钰成员
6月23日 评论:

compile

likedislike
丛吉钰丛吉钰成员
6月23日 update merge request[project id: 7665709, iid: 6415, commit_id: 600bd021eee2c46620a27ab8fd1284e9b5c9de98] virtual merging success
CANN-robotCANN-robot成员
6月23日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
6月23日 添加了label:ci-pipeline-failed
CANN-robotCANN-robot成员
6月23日 添加了label:ci-pipeline-running
CANN-robotCANN-robot成员
6月23日 添加了label:api-check-pass
CANN-robotCANN-robot成员
6月23日 删除了label:ci-pipeline-failedapi-check-pass
CANN-robot
CANN-robot成员
6月23日 评论:

流水线任务触发成功
任务链接 [0c84dba6385449e2a1fb6afbf769b1a8][流水线指导]

任务名称状态日志下载链接
Compile_Ascend_X86_ubuntu24 ✅ SUCCESS >>>>> >>>>>
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_Ascend_X86_mobile_station_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_950_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_single_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_experimental_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_950_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_910b ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_910c ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_950 ✅ SUCCESS >>>>> >>>>>
Compile_classify ✅ SUCCESS >>>>>
UT_Test_ophost ✅ SUCCESS
UT_Test_opapi ✅ SUCCESS
UT_Test_kernel ✅ SUCCESS
UT_Test_opgraph ✅ SUCCESS
PreSmoke_A900 ✅ SUCCESS >>>>>
API_Check ✅ SUCCESS >>>>>
PreSmoke_ATK_Test_A2 ✅ SUCCESS >>>>>
UT_Test_report_lcov ✅ SUCCESS >>>>>

[2026-06-23 17:42:51]    CI执行结束

likedislike
CANN-robot
CANN-robot成员
6月23日 评论:

流水线任务触发成功
任务链接 [b17be5660b7d4d5e965dcbf725bdebe3][流水线指导]

任务名称状态日志下载链接
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-23 17:20:24]    CI执行结束

likedislike
chenqi317成员
6月23日 评论:

/lgtm
/approve

likedislike
sxb154714
sxb154714成员
6月23日 评论:

/lgtm
/approve

likedislike
CANN-robot
CANN-robot成员
6月23日 评论:

The following users do not have permission to comment /lgtm or /approve on any module in this PR:
商晓波

likedislike
CANN-robot
CANN-robot成员
6月23日 评论:

The following users do not have permission to comment /lgtm or /approve on any module in this PR:
商晓波

likedislike
tangweiwei2成员
6月23日 评论:

/lgtm
/approve

likedislike
CANN-robot
CANN-robot成员
6月23日 评论:

The following users do not have permission to comment /lgtm or /approve on any module in this PR:
商晓波

likedislike
CANN-robotCANN-robot成员
6月23日 添加了label:lgtm
CANN-robot
CANN-robot成员
6月23日 评论:

The following users do not have permission to comment /lgtm or /approve on any module in this PR:
商晓波

likedislike
CANN-robotCANN-robot成员
6月23日 添加了label:api-check-pass
CANN-robotCANN-robot成员
6月23日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
6月23日 添加了label:ci-pipeline-passed
tang-lei01成员
6月23日 评论:

/approve

likedislike
CANN-robot
CANN-robot成员
6月23日 评论:

The following users do not have permission to comment /lgtm or /approve on any module in this PR:
商晓波

likedislike
CANN-robotCANN-robot成员
6月23日 添加了label:approved
CANN-robotCANN-robot成员
6月23日 关闭了关联的issue
CANN-robotCANN-robot成员
6月23日 合入了pull request
atomgit-bot
atomgit-bot
6月23日 评论:

变更摘要

该 PR 是对 pooling 系列算子的回退操作,主要将此前引入的独立 kernel 编译模式(通过各算子 op_kernel 目录下的 CMakeLists.txt 单独编译 arch35/*.cpp)回退为 APT(Auto Parallel Tiling)模式。具体改动包括:在各算子的 op_host/*_def.cpp 中为 ascend950 配置添加 .ExtendCfgInfo("opFile.value", "...") 指向对应的 *_apt.cpp 文件;将 kernel 源文件从 op_kernel/arch35/*.cpp 移动到 op_kernel/*_apt.cpp,并相应调整 #include 路径(从直接引用改为 arch35/ 前缀的相对引用);删除各算子 op_kernel 目录下的 CMakeLists.txt

主要改动

  • 添加 APT 配置文件指向:在 10 个算子的 op_host/*_def.cpp 中为 ascend950OpAICoreConfig 追加 .ExtendCfgInfo("opFile.value", "<算子名>_apt"),使框架在编译时能找到对应的 APT kernel 入口文件。
  • Kernel 文件重命名与位置移动:将 10 个 op_kernel/arch35/*.cpp 重命名并移动到 op_kernel/*_apt.cpp,同时删除各 op_kernel/CMakeLists.txt(共 10 个),移除独立的 add_kernel_sources 编译配置。
  • Include 路径适配:在移动后的 *_apt.cpp 文件中,将原来不带路径的 #include "xxx.h" 改为带 arch35/ 前缀的路径(如 #include "arch35/avg_pool_struct.h"),或使用 ../ 相对路径引用共享 common 头文件。
  • \file Doxygen 注释错误avg_pool_grad_apt.cpp\file 被错误写成 avg_pool_v2_grad.cppavg_pool_v2_apt.cpp\file 被错误写成 avg_pool_apt.cppmax_pool3_d_apt.cpp\file 被错误写成 pool_3d.cpp,均与实际文件名不匹配。
  • 格式退化avg_pool_grad_def.cppavg_pool_v2_grad_def.cpp 在第 10 行引入了尾随空白字符,且第 12-14 行的 /*! Doxygen 注释块丢失了前导空格缩进。
likedislike
atomgit-bot
atomgit-bot
6月23日 评论:

代码审查

✅ 未发现问题

likedislike