CANN/atvc SinhCustom算子样例
【免费下载链接】atvcATVCAscend C Templates for Vector Compute是为基于Ascend C开发的典型Vector算子封装的一系列模板头文件的集合可帮助用户快速开发典型Vector算子。项目地址: https://gitcode.com/cann/atvcSinhCustom算子样例概述样例概述本样例介绍了如何利用ATVC实现临时Tensor参与计算的SinhCustom单算子并完成算子验证算子功能sinh使用的ATVC模板Elementwise调用方式Kernel直调样例支持AI处理器型号Ascend 910CAscend 910B算子描述SinhCustom算子数学计算公式$y \frac{\exp(x) - \exp(-x)}{2}$SinhCustom算子规格算子类型(OpType)SinhCustom算子输入nameshapedata typeformatx8 * 2048floatND算子输出y8 * 2048floatND核函数名SinhCustom目录结构文件名描述sinh_custom.cppSinhCustom算子代码实现以及调用样例算子运行在ascendc-api-adv代码仓目录下执行cd ./ops_templates/atvc/examples bash run_examples.sh sinh_custom【免费下载链接】atvcATVCAscend C Templates for Vector Compute是为基于Ascend C开发的典型Vector算子封装的一系列模板头文件的集合可帮助用户快速开发典型Vector算子。项目地址: https://gitcode.com/cann/atvc创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考