已关闭
[算子开发][内测体验][AscendC][Documentation|文档反馈]: API写作规范示例将AscendC::TPipe误写为AscendC::Tpipe #1602
shutong创建于  17 天前关闭于  17 天前
shutong
17 天前 创建

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/asc_api_writing_guidelines.md

Issues Section(问题文档片段)

AscendC::Tpipe pipe;
AscendC::TQue<AscendC::TPosition::VECCALC, 1> tmpQue;
pipe.InitBuffer(tmpQue, 1, bufferSize); // bufferSize 通过Host侧tiling参数获取
AscendC::LocalTensor<uint8_t> sharedTmpBuffer = tmpQue.AllocTensor();
// 输入shape信息为1024, 算子输入的数据类型为half, 实际计算个数为512
AscendC::Cos(dstLocal, srcLocal, sharedTmpBuffer, 512);

Existing Issues(存在的问题)

示例将 Ascend C 资源管理类型 TPipe 错写为 Tpipe
C++ 标识符区分大小写,仓库中的实际类型声明为:

class TPipe;
likedislike
Cchenyiyuan成员
17 天前 将 wuyang_hw 设为负责人
吴洋成员
17 天前 关联了pull request:修复高阶API贡献指南和API写作规范中的示例错误
吴洋成员
17 天前 评论:

你好,感谢指出问题,当前文档确实描述有误,会尽快修复

likedislike
CANN-robotCANN-robot成员
17 天前 关闭了 issue
吴洋成员
17 天前 评论:

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

likedislike
CANN-robotCANN-robot成员
17 天前 添加了label:resolved