Pull Request已成功合入, 合并人@CANN-robot
(感谢 tan_xin 的贡献)以下是根据您提交的修改文件推荐的Reviewer和Committer序列,需各模块评审通过后方可合入
| Module List | Reviewers | Committers |
|---|---|---|
| repo-cann/ops-math | N/A | songkai111, zhou-qilong, gubaocheng, loov1, wangrui_ |


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


问题/功能描述
本次PR旨在解决BiasAddGrad算子在处理不同格式(如NC1HWC0、FRACTAL_Z等)的输入张量时,可能因格式不匹配而无法正确运行的问题。通过增强算子对输入张量格式的兼容性,提升了算子的通用性和鲁棒性。
修改方案描述
修改方案是为BiasAddGrad算子的配置文件(JSON格式)中,针对所有支持的数据类型(float16, float32, bfloat16, int32, int64)的输入和输出张量描述,统一新增了"format_match_mode": "FormatAgnostic"属性。该属性指示算子运行时忽略输入张量的具体格式,仅关注其形状和数据布局,从而使其能够接受更多样化的输入格式,提高了算子的适配能力。


流水线任务触发成功 [流水线指导]
任务链接 [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执行失败


流水线任务触发成功 [流水线指导]
任务链接 [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执行失败


流水线任务触发成功 [流水线指导]
任务链接 [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执行结束


流水线任务触发成功 [流水线指导]
任务链接 [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执行结束


/approve


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.


描述
关联的Issue
https://gitcode.com/cann/ops-math/issues/567
测试
文档更新
类型标签