已合并
add ops aclnnInplaceErfinv and aclnnInplaceMish example code #3857
guijianwei创建于 4月16日
add ops aclnnInplaceErfinv and aclnnInplaceMish example code #3857
已合并
guijianwei创建于 4月16日
guijianwei
guijianwei
4月16日

描述

aclnnInplaceErfinv and aclnnInplaceMish接口补充可执行的示例代码

关联的Issue

Issue #2096

测试

文档更新

类型标签

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 guijianwei 的贡献)
guijianweiguijianwei
4月16日 创建了 pull request,commit 0d6fb8ae
CANN-robot
CANN-robot成员
4月16日 评论:

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 /approve or /lgtm
  • Commenting /approve implies 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. 👍

likedislike
CANN-robotCANN-robot成员
4月16日 添加了label:cann-cla/yes
CANN-robotCANN-robot成员
4月16日 将crystalhu,yangyang016,fanqirui,zhou-qilong,zhajianqing123,chenqi317,liubo75,tangweiwei2,liujie12345678,wangyongguang,zhang-wu设为评审人
CANN-robotCANN-robot成员
4月16日 将crystalhu,zhou-qilong,zhajianqing123,chenqi317,liubo75,tangweiwei2,liujie12345678,wangyongguang,zhang-wu设为审查人
CANN-robot
CANN-robot成员
4月16日 评论:

问题/功能描述

本次PR新增了两个C++示例程序,旨在解决CANN算子库(ACLNN)中erfinv(逆误差函数)和mish(激活函数)原地(in-place)算子接口使用文档或示例缺失的问题。通过提供标准、完整的调用流程参考,帮助开发者正确使用相关算子。

修改方案描述

新增了两个独立的C++源文件,分别演示了aclnnInplaceErfinvaclnnInplaceMish算子的标准调用流程。每个示例均严格遵循两段式调用模式:先通过GetWorkspaceSize接口获取工作空间大小并申请内存,再执行算子。代码包含了ACL环境初始化、张量创建、内存管理、流同步、结果回传及资源释放的完整流程,并配有详细的错误检查和日志输出,可作为规范的算子调用模板。

likedislike
guijianweiguijianwei
4月16日 update merge request[project id: 7665709, iid: 3857, commit_id: 558157a6c9c915dbb3e9a12385a371d9bdf03d19] virtual merging success
此处折叠了13条事件消息 查看更多
guijianweiguijianwei
4月16日 修改了pull request 的描述
guijianwei
guijianwei
4月16日 评论:

compile

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

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

likedislike
CANN-robot
CANN-robot成员
4月16日 评论:

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

likedislike
CANN-robotCANN-robot成员
4月16日 添加了label:api-check-pass
CANN-robotCANN-robot成员
4月16日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
4月16日 添加了label:ci-pipeline-passed
guijianweiguijianwei
4月16日 修改了pull request 的描述
guijianwei
guijianwei
4月16日 评论:

/check-pr

likedislike
CANN-robot
CANN-robot成员
4月16日 评论:

The following labels are not ready.

lgtm: Please wait for reviewers to review the code.

approved: Please wait for committers to review the code.

likedislike
zhajianqing123成员
4月16日 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
4月16日 添加了label:approved
renruhai成员
4月16日 评论:

/lgtm

likedislike
CANN-robot
CANN-robot成员
4月16日 评论:

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

likedislike
liujie12345678成员
4月16日 评论:

/lgtm

likedislike
CANN-robot
CANN-robot成员
4月16日 评论:

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

likedislike
CANN-robotCANN-robot成员
4月16日 添加了label:lgtm
CANN-robot
CANN-robot成员
4月16日 评论:

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.

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