Pull Request has been successfully merged by CANN-robot.
(Thank you for LiuZonggu's contribution.)变更摘要
本 PR 属于代码风格清理,主要针对 scripts/opgen/template/add_example_aicpu/examples/test_aclnn_add_example.cpp 文件末尾多余的空白行。该文件末尾在许可证注释块结束符 */ 之后存在三个多余空行,本变更将其删除,使文件以正常的单行结尾。由于该文件属于 opgen 的 add_example_aicpu 模板,清理后可避免这些冗余空行被复制到新生成的 AICPU 示例文件中。此变更仅涉及空白字符,不影响编译与运行时行为。
主要改动
- 删除文件末尾冗余空行:在
scripts/opgen/template/add_example_aicpu/examples/test_aclnn_add_example.cpp的许可证注释块*/之后,移除了三个多余的空白行。 - 修正文件结尾格式:原文件末尾包含空行且以无换行符结尾,变更后文件恢复为正常的单行结尾格式。
- 模板文件同步清理:由于该文件位于
add_example_aicpu模板目录下,清理可防止多余空行传播到后续由模板生成的 AICPU 示例文件。


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 |
|---|---|---|
| repo-cann/ops-ras | ✅ yue-ma, 徐鲁威 (2/2) | ✅ yue-ma (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
LiuZonggu, thanks for your pull request. All authors of the commits have signed the CLA. 👍


流水线任务触发成功
任务链接 [8a60eb3ae3824ce1afd3f77416dc861e][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| PreSmoke_ATK_Test_A2 | ✅ SUCCESS | >>>>> |
[2026-09-23 09:24:52] CI执行结束


流水线任务触发成功
任务链接 [bc3142653bbc48be956c557fc8b012aa][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test_ophost | ✅ SUCCESS | ||
| UT_Test_opapi | ✅ SUCCESS | ||
| API_Check | ✅ SUCCESS | >>>>> |
[2026-09-23 09:26:55] CI执行结束


描述
Remove three redundant blank lines at the end of
scripts/opgen/template/add_example_aicpu/examples/test_aclnn_add_example.cpp.This is a code style cleanup: the file ended with three extra blank lines after the closing
*/of the license header comment, instead of a single trailing newline. Since this file belongs to the opgenadd_example_aicputemplate, the redundant blank lines would otherwise propagate to newly generated AICPU example files. This is a whitespace-only change with no functional impact.Same class of cleanup as PR #114 (which fixed the trailing blank lines in the
add_exampletemplate).关联的Issue
Fixes #46
https://gitcode.com/cann/ops-ras/issues/46
测试
git diffthat only the three trailing blank lines are removed; no other content is touched.文档更新
None.
类型标签