切换版块
×
基础软件平台
PyTorch开发
TensorFlow开发
编解码及SDK开发
BANG语言与计算库
开发工具链
MagicMind开发
软件栈百科
云平台集成
硬件产品专区
MLU370系列AI加速卡
MLU270系列AI加速卡
MLU220系列AI加速产品
经验方案交流区
经验案例与实践分享
开发者服务
开发者活动
公告与版务
高校支持
《智能计算系统》
签到
版块
社区
文档
SDK下载
370系列
200系列
开发平台
官网首页
注册
登录
全部版块
基础软件平台
硬件产品专区
经验方案交流区
开发者服务
高校支持
发布新帖
登录/注册
LV.1
gg
366
积分
2
赞
5
帖子
23
回复
1
收藏
TA的动态
TA的帖子
TA的回复
实验一中PluginOp接口封装部分
我的回复:/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginPowerDifferenceOp/plugin_power_difference_op.cc: In function ‘cnmlStatus_t cnmlCreatePluginPowerDifferenceOp(cnmlBaseOp**, cnmlPluginPowerDifferenceOpParam_t)’: /opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginPowerDifferenceOp/plugin_power_difference_op.cc:95:33: error: too few arguments to function ‘cnmlStatus_t cnmlCreatePluginOp(cnmlBaseOp**, const char*, void*, cnrtKernelParamsBuffer_t, cnmlTensor**, int, cnmlTensor**, int, cnmlTensor**, int)’ nullptr, 0);//wt ^ In file included from /opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginPowerDifferenceOp/cnplugin.h:23:0, from /opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginPowerDifferenceOp/plugin_power_difference_op.cc:24: /opt/AICSE-demo-student/env/neuware/include/cnml.h:31717:27: note: declared here CNML_DLL_API cnmlStatus_t cnmlCreatePluginOp(cnmlBaseOp_t *op, ^ /opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginPowerDifferenceOp/plugin_power_difference_op.cc: In function ‘cnmlStatus_t cnmlComputePluginPowerDifferenceOpForward(cnmlBaseOp_t, cnrtInvokeFuncParam_t, cnrtQueue_t)’: /opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginPowerDifferenceOp/plugin_power_difference_op.cc:111:38: error: cannot convert ‘cnrtInvokeFuncParam_t*’ to ‘cnmlTensor**’ for argument ‘2’ to ‘cnmlStatus_t cnmlComputePluginOpForward_V4(cnmlBaseOp_t, cnmlTensor**, void**, int, cnmlTensor**, void**, int, cnrtQueue_t, void*)’ queue);
2
实验一中PluginOp接口封装部分
我的回复:#1w3jc 回复可以参考cnplugin文件夹下面其他算子的接口实现。需要用到的cnml没有手册,可以查看cnml.h查看包含的函数展开我在仿照另外的几个.cc文件写了之后编译报了楼下的错误
2
上一页
1
2
3
4
5
6
下一页
Github
开发平台
文档中心
新手必读
官方微信
版权所有 © 2024 寒武纪 Cambricon.com 备案/许可证号:
京ICP备17003415号-1
关闭