Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
https://gitcode.com/cann/asc-devkit/blob/master/docs/zh/asc_api_writing_guidelines.md
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);
示例将 Ascend C 资源管理类型 TPipe 错写为 Tpipe。 C++ 标识符区分大小写,仓库中的实际类型声明为:
TPipe
Tpipe
class TPipe;
你好,感谢指出问题,当前文档确实描述有误,会尽快修复
你好,相关问题已修复。 我们先关闭此issue,如有其他问题,欢迎再提issue交流。
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;