Pull Request已成功合入, 合并人@CANN-robot
(感谢 guijianwei 的贡献)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 |
|---|---|---|
| activation | ✅ zhajianqing123, liujie12345678 (2/2) | ✅ zhajianqing123 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
guijianwei, thanks for your pull request. All authors of the commits have signed the CLA. 👍


问题/功能描述
本次PR新增了两个C++示例程序,旨在解决CANN算子库(ACLNN)中erfinv(逆误差函数)和mish(激活函数)原地(in-place)算子接口使用文档或示例缺失的问题。通过提供标准、完整的调用流程参考,帮助开发者正确使用相关算子。
修改方案描述
新增了两个独立的C++源文件,分别演示了aclnnInplaceErfinv和aclnnInplaceMish算子的标准调用流程。每个示例均严格遵循两段式调用模式:先通过GetWorkspaceSize接口获取工作空间大小并申请内存,再执行算子。代码包含了ACL环境初始化、张量创建、内存管理、流同步、结果回传及资源释放的完整流程,并配有详细的错误检查和日志输出,可作为规范的算子调用模板。


compile


流水线任务触发成功
任务链接 [2f9d43701a6145aca8509bfa7dcd2eb3][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| 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 | >>>>> | >>>>> |
| Pre_Compile | ✅ 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 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_ARM_monitor | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test_ophost | ✅ SUCCESS | ||
| UT_Test_opapi | ✅ SUCCESS | ||
| UT_Test_kernel | ✅ SUCCESS | ||
| UT_Test_opgraph | ✅ SUCCESS | ||
| Smoke_A900_npupool | ✅ SUCCESS | >>>>> | |
| API_Check | ✅ SUCCESS | >>>>> | |
| ATK_Test_A2 | ✅ SUCCESS |
[2026-04-16 11:45:57] CI执行结束


流水线任务触发成功
任务链接 [942d0c42188a41d7a0bd368f5aabf0bd][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ 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 | ||
| codecheck_style | ✅ SUCCESS |
[2026-04-16 11:39:43] CI执行结束


/check-pr


The following labels are not ready.
lgtm: Please wait for reviewers to review the code.
approved: Please wait for committers to review the code.


/lgtm
/approve


The following users do not have permission to comment /lgtm or /approve on any module in this PR:
renruhai


/lgtm


The following users do not have permission to comment /lgtm or /approve on any module in this PR:
renruhai


Review Guide
This pull-request passes review.
Committers who wrote a comment of /approve are: zhajianqing123.
Reviewers who wrote a comment of /lgtm are: zhajianqing123, liujie12345678.


描述
aclnnInplaceErfinv and aclnnInplaceMish接口补充可执行的示例代码
关联的Issue
Issue #2096
测试
文档更新
类型标签