已合并
修改embeddingBag、maxPoolWithArgmax、maxPoolWithArgmaxV3、maxPoolGradWithArgmax、maxPool3DGradWithArgmax、MaxPoolV3、MaxPoolV2、MaxPool3D、MaskScatterWithPosition编译告警 #1947
SimonZzz创建于 2月13日
修改embeddingBag、maxPoolWithArgmax、maxPoolWithArgmaxV3、maxPoolGradWithArgmax、maxPool3DGradWithArgmax、MaxPoolV3、MaxPoolV2、MaxPool3D、MaskScatterWithPosition编译告警 #1947
已合并
SimonZzz创建于 2月13日
SimonZzz成员
2月13日

描述

修改embeddingBag、maxPoolWithArgmax、maxPoolWithArgmaxV3、maxPoolGradWithArgmax、maxPool3DGradWithArgmax、MaxPoolV3、MaxPoolV2、MaxPool3D、MaskScatterWithPosition编译告警

关联的Issue

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

测试

本地测试通过,冒烟已过

文档更新

类型标签

  • Bug修复
  • 新特性
  • 性能优化
  • 文档更新
  • 其他,请描述:
likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 SimonZzz 的贡献)
SSimonZzz成员
2月13日 创建了 pull request,commit 3cae11a3
CANN-robot
CANN-robot成员
2月13日 评论:

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 tang-lei01, wangyongguang (2/2) wangyongguang (1/1)
index wangyongguang, tangweiwei2 (2/2) wangyongguang, tangweiwei2 (2/1)
pooling wangyongguang, tangweiwei2 (2/2) wangyongguang, tangweiwei2 (2/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)
likedislike
CANN-robotCANN-robot成员
2月13日 将crystalhu,fanqirui,zhou-qilong,chenqi317,liubo75,tangweiwei2,zhangyuxiang0119,wangyongguang,zhang-wu设为评审人
CANN-robotCANN-robot成员
2月13日 添加了label:cann-cla/yes
CANN-robotCANN-robot成员
2月13日 将crystalhu,zhou-qilong,chenqi317,liubo75,tangweiwei2,zhangyuxiang0119,wangyongguang,zhang-wu设为审查人
CANN-robot
CANN-robot成员
2月13日 评论:

问题/功能描述

本次PR对MaxPoolWithArgmax算子及其V3版本的C++实现文件进行了代码风格与类型安全性的优化。核心目标是统一将多处C风格的reinterpret_cast指针类型转换替换为更安全、意图更明确的C++风格static_cast,以提升代码的健壮性、可读性,并消除潜在的未定义行为风险。

修改方案描述

修改涉及max_pool_with_argmax_infershape.cppmax_pool_with_argmax_tiling_base.cppmax_pool_with_argmax_v3_infershape.cpp三个文件。具体方案是将从通用数据结构(如ContinuousVector)中获取的ksizestridespads等属性数据的指针,以及特定的编译信息指针,统一由reinterpret_cast改为使用static_cast进行类型转换。此修改确保了转换在编译时得到更严格的类型检查,符合C++最佳实践,同时保持了所有功能逻辑完全不变。

likedislike
SimonZzz成员
2月13日 评论:

compile

likedislike
CANN-robot
CANN-robot成员
2月13日 评论:

🔵 source code change are detected, tasks labels is removed in this pull request!

likedislike
CANN-robotCANN-robot成员
2月13日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
2月13日 评论:

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

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
anti_virus ✅ SUCCESS >>>>>
Check_Pr ✅ SUCCESS >>>>>
Compile_Ascend_X86 ✅ 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 >>>>> >>>>>
API_Check ✅ SUCCESS >>>>>
Pre_Compile ✅ SUCCESS
pre_comment ✅ SUCCESS >>>>>
UT_Test_ophost ✅ SUCCESS
UT_Test_opapi ✅ SUCCESS
UT_Test_kernel ✅ SUCCESS
UT_Test_opgraph ✅ SUCCESS
Smoke_A900_npupool ✅ SUCCESS >>>>>

[2026-02-13 16:08:58]    CI执行结束

likedislike
CANN-robotCANN-robot成员
2月13日 添加了label:api-check-pass
此处折叠了7条事件消息 查看更多
CANN-robotCANN-robot成员
2月13日 将FelixTang7设为评审人
CANN-robot
CANN-robot成员
2月13日 评论:

Notification

This pull request source branch has changed, so removes the following label(s): ci-pipeline-passed.

likedislike
CANN-robotCANN-robot成员
2月13日 将FelixTang7设为审查人
CANN-robot
CANN-robot成员
2月13日 评论:

🔵 source code change are detected, tasks labels is removed in this pull request!

likedislike
SSimonZzz成员
2月14日 update merge request[project id: 7665709, iid: 1947, commit_id: a852e976b4df53dbfb880c08327bdd44e39faeeb] virtual merging success
SSimonZzz成员
2月14日 update merge request[project id: 7665709, iid: 1947, commit_id: e795c56dcd39332701f507825acedd88bd2c4ba5] virtual merging success
CANN-robot
CANN-robot成员
2月14日 评论:

🔵 source code change are detected, tasks labels is removed in this pull request!

likedislike
SSimonZzz成员
2月14日 update merge request[project id: 7665709, iid: 1947, commit_id: d3a1c74fdf82fc9018a4884fac8618bf3d585f95] virtual merging success
SSimonZzz成员
2月14日 强制推送  1 个提交:d5938ed4-fix
SSimonZzz成员
2月14日 update merge request[project id: 7665709, iid: 1947, commit_id: c3f495a0ab7efb3e004b03daac200da315907242] virtual merging success
CANN-robotCANN-robot成员
2月14日 删除了label:stat/needs-squash
CANN-robot
CANN-robot成员
2月14日 评论:

CLA Signature Pass

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

likedislike
CANN-robot
CANN-robot成员
2月14日 评论:

🔵 source code change are detected, tasks labels is removed in this pull request!

likedislike
SimonZzz成员
2月14日 评论:

compile

likedislike
CANN-robotCANN-robot成员
2月14日 添加了label:ci-pipeline-running
CANN-robotCANN-robot成员
2月14日 删除了label:api-check-pass
CANN-robot
CANN-robot成员
2月14日 评论:

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

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
anti_virus ✅ SUCCESS >>>>>
Check_Pr ✅ SUCCESS >>>>>
Compile_Ascend_X86 ✅ 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 >>>>> >>>>>
API_Check ⚠️ WARNING >>>>>
Pre_Compile ✅ SUCCESS
pre_comment ✅ SUCCESS >>>>>
UT_Test_ophost ✅ SUCCESS
UT_Test_opapi ✅ SUCCESS
UT_Test_kernel ✅ SUCCESS
UT_Test_opgraph ✅ SUCCESS
Smoke_A900_npupool ✅ SUCCESS >>>>>

[2026-02-14 11:04:59]    CI执行结束

likedislike
SSimonZzz成员
2月14日 修改了pull request 的描述
CANN-robotCANN-robot成员
2月14日 添加了label:api-check-failed
CANN-robotCANN-robot成员
2月14日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
2月14日 添加了label:ci-pipeline-passed
SSimonZzz成员
2月14日 修改了pull request 的描述
SSimonZzz成员
2月14日 修改标题为 “修改embeddingBag、maxPoolWithArgmax、maxPoolWithArgmaxV3、maxPoolGradWithArgmax、maxPool3DGradWithArgmax、MaxPoolV3、MaxPoolV2、MaxPool3D、MaskScatterWithPosition编译告警”,原标题为“修改编译告警”
tangweiwei2成员
2月14日 评论:

/approve

likedislike
wangyongguang成员
2月14日 评论:

/approve
/lgtm

likedislike
CANN-robotCANN-robot成员
2月14日 添加了label:approved
tang-lei01成员
2月14日 评论:

/lgtm

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

Review Guide

This pull-request passes review.
Committers who wrote a comment of /approve are: tangweiwei2, wangyongguang.
Reviewers who wrote a comment of /lgtm are: wangyongguang, tang-lei01, tangweiwei2.

likedislike
CANN-robotCANN-robot成员
2月14日 关闭了关联的issue
CANN-robotCANN-robot成员
2月14日 合入了pull request