已合并
bias_add_grad算子配置格式无关属性 #997
tan_xin创建于 1月29日
bias_add_grad算子配置格式无关属性 #997
已合并
tan_xin创建于 1月29日
tan_xin成员
1月29日

描述

关联的Issue

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

测试

文档更新

类型标签

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 tan_xin 的贡献)
CANN-robot
CANN-robot成员
1月29日 评论:

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

likedislike
CANN-robot
CANN-robot成员
1月29日 评论:

以下是根据您提交的修改文件推荐的Reviewer和Committer序列,需各模块评审通过后方可合入

Module List Reviewers Committers
repo-cann/ops-math N/A songkai111, zhou-qilong, gubaocheng, loov1, wangrui_
likedislike
CANN-robotCANN-robot成员
1月29日 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
1月29日 评论:

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

likedislike
CANN-robot
CANN-robot成员
1月29日 评论:

CLA Signature Pass

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

likedislike
CANN-robot
CANN-robot成员
1月29日 评论:

问题/功能描述

本次PR旨在解决BiasAddGrad算子在处理不同格式(如NC1HWC0、FRACTAL_Z等)的输入张量时,可能因格式不匹配而无法正确运行的问题。通过增强算子对输入张量格式的兼容性,提升了算子的通用性和鲁棒性。

修改方案描述

修改方案是为BiasAddGrad算子的配置文件(JSON格式)中,针对所有支持的数据类型(float16, float32, bfloat16, int32, int64)的输入和输出张量描述,统一新增了"format_match_mode": "FormatAgnostic"属性。该属性指示算子运行时忽略输入张量的具体格式,仅关注其形状和数据布局,从而使其能够接受更多样化的输入格式,提高了算子的适配能力。

likedislike
tan_xin成员
1月29日 评论:

compile

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

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

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
anti_virus ✅ SUCCESS >>>>>
Check_Pr ✅ SUCCESS >>>>>
Compile_Ascend_X86 ❌ FAILED >>>>>
Compile_Ascend_X86_mobile_station ❌ FAILED >>>>>
Compile_Ascend_ARM ❌ FAILED >>>>>
Compile_Ascend_X86_experimental ❌ FAILED >>>>>
Compile_Ascend_ARM_experimental ❌ FAILED >>>>>
Compile_Ascend_single ❌ FAILED >>>>>
Compile_Ascend_X86_A5 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_A5 ✅ SUCCESS >>>>> >>>>>
API_Check ✅ SUCCESS >>>>>
UT_Test ⚪ ABORTED
UT_Test_experimental ⚪ ABORTED
Smoke_A900 ⚪ ABORTED >>>>>

[2026-01-29 16:04:15]    CI执行失败

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

compile

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

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

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
anti_virus ✅ SUCCESS >>>>>
Check_Pr ✅ SUCCESS >>>>>
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 >>>>> >>>>>
API_Check ❌ FAILED >>>>>
UT_Test ⚪ ABORTED
UT_Test_experimental ⚪ ABORTED
Smoke_A900 ⚪ ABORTED >>>>>

[2026-01-29 16:21:12]    CI执行失败

likedislike
CANN-robotCANN-robot成员
1月29日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
1月29日 添加了label:ci-pipeline-failed
tan_xin成员
1月29日 评论:

compile

likedislike
CANN-robotCANN-robot成员
1月29日 删除了label:ci-pipeline-failed
CANN-robotCANN-robot成员
1月29日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
1月29日 评论:

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

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
anti_virus ✅ SUCCESS >>>>>
Check_Pr ✅ SUCCESS >>>>>
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 >>>>> >>>>>
API_Check ✅ SUCCESS >>>>>
UT_Test ✅ SUCCESS
UT_Test_experimental ✅ SUCCESS
Smoke_A900 ✅ SUCCESS >>>>> >>>>>

[2026-01-29 17:22:04]    CI执行结束

likedislike
CANN-robot
CANN-robot成员
1月29日 评论:

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

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

[2026-01-29 17:20:59]    CI执行结束

likedislike
CANN-robotCANN-robot成员
1月29日 添加了label:api-check-pass
此处折叠了7条事件消息 查看更多
Ttan_xin成员
1月29日 修改标题为 “bias_add_grad算子配置格式无关属性”,原标题为“bias_add_grad算子配置格式无关”
RuiWang_成员
1月29日 评论:

/lgtm

likedislike
Ttan_xin成员
1月29日 修改了pull request 的描述
Ttan_xin成员
1月29日 修改了pull request 的描述
songkai111成员
1月29日 评论:

/approve

likedislike
CANN-robotCANN-robot成员
1月29日 添加了label:lgtmapproved
CANN-robot
CANN-robot成员
1月29日 评论:

Review Guide

This Pull-Request Passes Review.
Committers who wrote a comment of /approve are: songkai111.
Reviewers who wrote a comment of /lgtm are: wangrui_, songkai111.

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