已关闭
[算子开发][内测体验][AscendC][Documentation|文档反馈]: 调用示例代码缺少第二个源操作数参数 #1564
张伟伟创建于 8月21日关闭于 8月26日
8月21日 将 gcw_atM8lhjZ 设为负责人
Chen_hangxin7
8月21日 评论:
8月21日 评论:
你好,感谢指出问题,调用实例代码的形式与算子原型不一致,会尽快修复


8月25日 关联了pull request:fix_issue_problem
Chen_hangxin7
8月25日 评论:
8月25日 评论:
问题已修复,当前调用示例代码已修复


Chen_hangxin7
8月26日 评论:
8月26日 评论:
您好,相关问题已修复。
我们先关闭此issue,如有其他问题,欢迎再提issue交流~


8月26日 issue状态由 进行中 改变为 已完成
8月26日 关闭了 issue
8月26日 添加了label:resolved
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(问题文档片段)
Existing Issues(存在的问题)
函数原型明确定义了 两个源操作数(srcTensor0 和 srcTensor1):& dstTensor,& srcTensor0, // 第一个源操作数& srcTensor1, // 第二个源操作数
// 带sharedTmpBuffer版本
void ReGlu(const LocalTensor
const LocalTensor
const LocalTensor
const LocalTensor<uint8_t>& sharedTmpBuffer,
const uint32_t calCount)
// 接口框架申请版本& dstTensor,& srcTensor0, // 第一个源操作数& srcTensor1, // 第二个源操作数
void ReGlu(const LocalTensor
const LocalTensor
const LocalTensor
const uint32_t calCount)
但调用示例只传了一个源操作数 srcLocal:
// 接口框架申请临时空间
AscendC::ReGlu(dstLocal, srcLocal, 30); // 缺少 srcLocal1
// 通过sharedTmpBuffer入参传入
AscendC::ReGlu(dstLocal, srcLocal, sharedTmpBuffer, 30); // 缺少 srcLocal1
调用实例代码的形式与算子原型和注释不能对应,需要修改