Pull Request已成功合入, 合并人@CANN-robot
(感谢 gaomingyuan 的贡献)变更摘要
本 PR 针对 nn 仓 activation 目录下多个算子的 tiling 实现进行统一整改,核心目的是修正错误日志问题:一方面删除大量冗余的 OP_LOGD 调试日志(如 ... enter.、Enter new XxxTiling 等),另一方面在 elewiseBaseTiling/BroadcastBaseTiling 等关键失败分支中补充数据类型或 opKey 等上下文信息,使错误日志更具可诊断性。涉及 LeakyReluTiling、PreluTiling、ReluTiling、ReluV2Tiling、SigmoidTiling、SwiGluBaseTiling4RegBase、SwishTiling、SwishGradTiling 等 tiling 类。
主要改动
- 移除冗余调试日志: 在
leaky_relu、p_relu、relu、relu_v2、swish、swish_grad、swi_glu_grad等多个算子 tiling 文件中删除OP_LOGD形式的入口/过程调试日志(如CalcInputDtype enter.、Enter new ReluTiling等),减少非必要日志输出。 - 失败日志补充数据类型信息: 在
elewiseBaseTiling failed、BroadcastBaseTiling do tiling failed等错误日志中通过ge::TypeUtils::DataTypeToSerialString()追加输出 dtype(如LeakyReluTiling、ReluTiling、ReluV2Tiling、SwishTiling、SwishGradTiling)或输入 dtype(如LeakyReluGradTiling、PreluTiling、ReluGradTiling),提升排障信息量。 - 失败日志补充
opKey:SigmoidTiling、SigmoidGradTiling的elewise tiling failed以及SiluGradTiling的broadcast tiling failed错误日志中追加opKey: %lu.字段,便于定位具体算子实例。 - 规范化文件收尾:
leaky_relu_grad、p_relu、relu、swish_grad等文件末尾补充缺失的换行符,统一文件格式。


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.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| activation | ✅ 王星, 汤平川 (2/2) | ✅ 汤平川, 王星 (2/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
qq_52874943, thanks for your pull request. All authors of the commits have signed the CLA. 👍


compile


流水线任务触发成功
任务链接 [38c07d1aa3994c9e9ea05008ae2e4da4][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86_ubuntu24 | ✅ 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 | >>>>> | >>>>> |
| Compile_Pre | ✅ SUCCESS | >>>>> | |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_950_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_experimental_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_950_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910b | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910c | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_950 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_classify | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_mobile_station_9030_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test_ophost | ✅ SUCCESS | ||
| UT_Test_opapi | ✅ SUCCESS | ||
| UT_Test_kernel | ✅ SUCCESS | ||
| UT_Test_opgraph | ✅ SUCCESS | ||
| PreSmoke_A900 | ✅ SUCCESS | >>>>> | |
| API_Check | ✅ SUCCESS | >>>>> | |
| PreSmoke_ATK_Test_A2 | ✅ SUCCESS | >>>>> | |
| UT_Test_report_lcov | ⚠️ WARNING | >>>>> |
[2026-08-26 16:42:28] CI执行结束


流水线任务触发成功
任务链接 [d67783bbc7e148a39c53c69be2beac23][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| antipoison | ✅ SUCCESS | >>>>> | |
| codecheck_checkpr | ✅ SUCCESS | ||
| codecheck_precommit | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> | |
| StaticCheck_md | ✅ SUCCESS |
[2026-08-26 15:54:56] CI执行结束


/lgtm
/approve


/lgtm
/approve


您好,pr合入已准备就绪,请尽快联系committer进行检视,谢谢!


描述
本 PR 针对 nn 仓 activation 目录下多个算子的 tiling 实现进行统一整改,核心目的是修正错误日志问题:一方面删除大量冗余的 OP_LOGD 调试日志(如 ... enter.、Enter new XxxTiling 等),另一方面在 elewiseBaseTiling/BroadcastBaseTiling 等关键失败分支中补充数据类型或 opKey 等上下文信息,使错误日志更具可诊断性。涉及 LeakyReluTiling、PreluTiling、ReluTiling、ReluV2Tiling、SigmoidTiling、SwiGluBaseTiling4RegBase、SwishTiling、SwishGradTiling 等 tiling 类。
关联的Issue
关联Issue#5183
测试
本地已完成新精度对比与性能测试,通过静态检查、蓝区冒烟、算子ST以及算子二级冒烟。
文档更新
类型标签
AI/Agent生成声明