已合并
增加AngleV2大维度拦截 #3561
BoyangZhang创建于 6月26日
增加AngleV2大维度拦截 #3561
已合并
BoyangZhang创建于 6月26日
BoyangZhang成员
6月26日

描述

增加AngleV2大维度拦截

关联的Issue

测试

文档更新

类型标签

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

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
math/angle_v2 宋恺, 唐燕峰 (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

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

likedislike
atomgit-bot
atomgit-bot
6月26日 评论:

变更摘要

本 PR 在 AngleV2 算子的 Tiling 初始化阶段增加了对输入张量维度数量的校验拦截。当输入张量的维度数超过 8 时,Ascend950 平台将直接返回 GRAPH_FAILED 并输出错误日志,其他平台则输出警告日志后继续执行。此改动主要针对 angle_v2_tiling.cpp 中的 AngleV2Tiling::Init() 函数,新增约 11 行代码,旨在防止大维度输入导致 kernel 执行异常。

主要改动

  • 新增大维度拦截逻辑: 在 AngleV2Tiling::Init() 中新增 xShape.GetDimNum() > 8 的校验分支,对超过 8 维的输入张量进行拦截
  • Ascend950 平台差异化处理: 在 Ascend950 平台上,大维度输入被判定为硬错误,通过 OP_LOGE 输出错误信息并返回 ge::GRAPH_FAILED,阻止后续 kernel 执行
  • 其他平台兼容告警: 对于非 Ascend950 平台,仅通过 OP_LOGW 输出警告信息,不阻断执行流程,保持向后兼容
likedislike
atomgit-bot
atomgit-bot
6月26日 评论:

代码审查

✅ 未发现问题

likedislike
BoyangZhang成员
6月26日 评论:

compile

likedislike
BBoyangZhang成员
6月26日 update merge request[project id: 7649531, iid: 3561, commit_id: c524ddd2e285b122014d2731ba169351af0c7d23] virtual merging success
CANN-robotCANN-robot成员
6月26日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
6月26日 评论:

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

任务名称状态日志下载链接
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_experimental ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_experimental ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_single ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_A5 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_A5 ✅ SUCCESS >>>>> >>>>>
pre_comment ✅ SUCCESS >>>>>
Compile_Ascend_X86_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_experimental_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_A5_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_harmony-infer ✅ SUCCESS >>>>>
Compile_Ascend_ARM_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_experimental_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_single_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_A5_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_910b ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_910c ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_950 ✅ SUCCESS >>>>> >>>>>
Compile_harmony-infer-chs-math ✅ SUCCESS >>>>>
UT_Test ✅ SUCCESS
UT_Test_experimental ✅ SUCCESS
UT_Test_kernel ✅ SUCCESS
PreSmoke_A900 ✅ SUCCESS >>>>>
API_Check ✅ SUCCESS >>>>>
PreSmoke_ATK_Test_A2 ✅ SUCCESS >>>>>

[2026-06-26 15:45:53]    CI执行结束

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

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

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
antipoison ✅ SUCCESS >>>>>
codecheck_Pr ✅ SUCCESS
StaticCheck_codespell_check ✅ SUCCESS
StaticCheck_link_validity_check ✅ SUCCESS
StaticCheck_resource_existence_check ✅ SUCCESS
StaticCheck_tag_closed_check ✅ SUCCESS
StaticCheck_markdownlint ✅ SUCCESS
codecheck_codestyle ✅ SUCCESS >>>>>
codecheck_precommit ⚠️ WARNING >>>>> >>>>>

[2026-06-26 15:41:29]    CI执行结束

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

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
6月26日 添加了label:approved
FelixTang7成员
6月26日 评论:

/lgtm
/approve

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