已关闭
[算子开发][内测体验][AscendC][Documentation|文档反馈]: 调用示例代码缺少第二个源操作数参数 #1564
张伟伟创建于  8月21日关闭于  8月26日
张伟伟
8月21日 创建

Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.

Document Link(文档链接)

https://gitcode.com/cann/asc-devkit/blob/master/docs/zh/api/SIMD-API/adv_api/activation_functions/ReGlu_interface/ReGlu.md

Issues Section(问题文档片段)

image.png

Existing Issues(存在的问题)

函数原型明确定义了 两个源操作数(srcTensor0 和 srcTensor1):
// 带sharedTmpBuffer版本
void ReGlu(const LocalTensor& dstTensor,
const LocalTensor& srcTensor0, // 第一个源操作数
const LocalTensor& srcTensor1, // 第二个源操作数
const LocalTensor<uint8_t>& sharedTmpBuffer,
const uint32_t calCount)

// 接口框架申请版本
void ReGlu(const LocalTensor& dstTensor,
const LocalTensor& srcTensor0, // 第一个源操作数
const LocalTensor& srcTensor1, // 第二个源操作数
const uint32_t calCount)
但调用示例只传了一个源操作数 srcLocal:
// 接口框架申请临时空间
AscendC::ReGlu(dstLocal, srcLocal, 30); // 缺少 srcLocal1

// 通过sharedTmpBuffer入参传入
AscendC::ReGlu(dstLocal, srcLocal, sharedTmpBuffer, 30); // 缺少 srcLocal1

调用实例代码的形式与算子原型和注释不能对应,需要修改

likedislike
CChen_hangxin7成员
8月21日 将 gcw_atM8lhjZ 设为负责人
Chen_hangxin7成员
8月21日 评论:

你好,感谢指出问题,调用实例代码的形式与算子原型不一致,会尽快修复

likedislike
CChen_hangxin7成员
8月25日 关联了pull request:fix_issue_problem
Chen_hangxin7成员
8月25日 评论:

问题已修复,当前调用示例代码已修复

likedislike
Chen_hangxin7成员
8月26日 评论:

您好,相关问题已修复。
我们先关闭此issue,如有其他问题,欢迎再提issue交流~

likedislike
CChen_hangxin7成员
8月26日 issue状态由 进行中 改变为 已完成
CChen_hangxin7成员
8月26日 关闭了 issue
CANN-robotCANN-robot成员
8月26日 添加了label:resolved