已合并
为AclnnNormalTensorTensor接口增加广播功能 #2146
huairuchen创建于 4月9日
为AclnnNormalTensorTensor接口增加广播功能 #2146
已合并
huairuchen创建于 4月9日
已删除 :pr_broadcast合入到cann/ops-mathmaster
huairuchen
huairuchen成员
4月9日

描述

当测试mean,std,out为不同shape且满足广播条件时,AclnnNormalTensorTensor接口侧未实施广播操作,未能正确按预想完成V3算子功能。
因此在aclnn接口侧,进入V3算子前,新增条件分支,当判断为AclnnNormalTensorTensor接口且需要广播时,进行广播操作。保证mean、std经过广播后与out保持shape一致。保证后续功能正常,无报错拦截。

关联的Issue

https://gitcode.com/cann/ops-math/issues/1208

测试

OBP冒烟,Hostapi冒烟,二级冒烟,构建触发。算子泛化测试FloatFloat、FloatTensor、TensorFloat、TensorTensor接口。

文档更新

类型标签

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 huairuchen 的贡献)
huairuchenhuairuchen成员
4月9日 创建了 pull request,commit 0640ddf7
CANN-robot
CANN-robot成员
4月9日 评论:

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
repo-cann/ops-math songkai111, zl_hw (2/2) songkai111 (1/1)

💡 Tip:

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

CLA Signature Pass

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

likedislike
CANN-robotCANN-robot成员
4月9日 添加了label:cann-cla/yes
此处折叠了15条事件消息 查看更多
CANN-robotCANN-robot成员
4月10日 删除了label:stat/needs-squash
ghost
4月10日 评论:

compile

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

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

任务名称状态日志下载链接
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 >>>>>
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_ARM_monitor ✅ SUCCESS >>>>> >>>>>
UT_Test ✅ SUCCESS
UT_Test_experimental ✅ SUCCESS
UT_Test_kernel ✅ SUCCESS
Smoke_A900_npupool ✅ SUCCESS >>>>>
API_Check ✅ SUCCESS >>>>>
ATK_Test_A2 ✅ SUCCESS

[2026-04-10 10:51:21]    CI执行结束

likedislike
CANN-robot
CANN-robot成员
4月10日 评论:

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

任务名称状态日志下载链接
codecheck ❌ FAILED >>>>>
SCA ✅ SUCCESS >>>>>
anti_virus ✅ SUCCESS >>>>>
Check_Pr ✅ SUCCESS >>>>>
StaticCheck_codespell_check ✅ SUCCESS
StaticCheck_link_validity_check ✅ SUCCESS
StaticCheck_resource_existence_check ✅ SUCCESS
StaticCheck_tag_closed_check ✅ SUCCESS
StaticCheck_markdownlint ✅ SUCCESS
cocheck_codestyle ✅ SUCCESS
likedislike
CANN-robotCANN-robot成员
4月10日 添加了label:api-check-pass
CANN-robotCANN-robot成员
4月10日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
4月10日 添加了label:ci-pipeline-failed
ghost
4月10日 评论:

compile

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

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

任务名称状态日志下载链接
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 >>>>>
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_ARM_monitor ✅ SUCCESS >>>>> >>>>>
UT_Test ✅ SUCCESS
UT_Test_experimental ✅ SUCCESS
UT_Test_kernel ✅ SUCCESS
Smoke_A900_npupool ✅ SUCCESS >>>>>
API_Check ✅ SUCCESS >>>>>
ATK_Test_A2 ✅ SUCCESS

[2026-04-10 12:06:49]    CI执行结束

likedislike
CANN-robot
CANN-robot成员
4月10日 评论:

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

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
anti_virus ✅ SUCCESS >>>>>
Check_Pr ✅ SUCCESS >>>>>
StaticCheck_codespell_check ✅ SUCCESS
StaticCheck_link_validity_check ✅ SUCCESS
StaticCheck_resource_existence_check ✅ SUCCESS
StaticCheck_tag_closed_check ✅ SUCCESS
StaticCheck_markdownlint ✅ SUCCESS
cocheck_codestyle ✅ SUCCESS

[2026-04-10 11:55:16]    CI执行结束

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

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
4月10日 添加了label:approved
zl_hw成员
4月10日 评论:

/lgtm

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

Review Guide

This pull-request passes review.
Committers who wrote a comment of /approve are: songkai111.
Reviewers who wrote a comment of /lgtm are: songkai111, zl_hw.

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