切换版块
×
基础软件平台
PyTorch开发
TensorFlow开发
编解码及SDK开发
BANG语言与计算库
开发工具链
MagicMind开发
软件栈百科
云平台集成
硬件产品专区
MLU370系列AI加速卡
MLU270系列AI加速卡
MLU220系列AI加速产品
经验方案交流区
经验案例与实践分享
开发者服务
开发者活动
公告与版务
高校支持
《智能计算系统》
签到
版块
社区
文档
SDK下载
370系列
200系列
开发平台
官网首页
注册
登录
全部版块
基础软件平台
硬件产品专区
经验方案交流区
开发者服务
高校支持
发布新帖
登录/注册
LV.1
17020510003王昭
33
积分
1
赞
3
帖子
18
回复
0
收藏
TA的动态
TA的帖子
TA的回复
请问大家tf集成时出现模块内不包含powerdifference算子是什么情况
我的回复:#1w3jc 回复检查一下需要拷贝的文件是不是拷贝到tf的各个目录下了,拷贝好重新编译tf试试吧好的谢谢
1
tf集成这一步bash build_cnplugin.sh --mlu200报错
我的回复:将plugin路径下包括powerdifference的七个算子中的头文件全部添加cnplugin.h才不报错了,很奇怪为什么这样子
0
tf集成这一步bash build_cnplugin.sh --mlu200报错
我的回复:#7w3jc 回复同意,感觉像是cnplugin.h没有替换到对应目录这个应该就是按照视频演示的替换到了opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/common/include路径下,已经做了,但是还是依然这样报错,我感觉也是这个头文件的问题,不过很感谢!
0
tf集成这一步bash build_cnplugin.sh --mlu200报错
我的回复:#6彬彬有礼 回复要替换的头文件替换了嘛?应该就是按照视频演示的,将/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops路径下添加进去整个powerdifference算子的文件,然后将opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/common/include路径下的cnplugin.h文件替换掉就可以了吧,就是这么做的,文件显示日期也已经更新,但是依然是这样。。。不过很感谢!
0
tf集成这一步bash build_cnplugin.sh --mlu200报错
我的回复:全部的报错信息如下:/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc:46:3: : ‘cnmlPluginResizeAndColorCvtParam_t’ was not declared in this scope cnmlPluginResizeAndColorCvtParam_t* param, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc:46:39:r: ‘param’ was not declared in this scope cnmlPluginResizeAndColorCvtParam_t* param, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc:47:3: : expected primary-expression before ‘int’ int s_row, // H ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc:48:3: : expected primary-expression before ‘int’ int s_col, // W ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc:49:3: : expected primary-expression before ‘int’ int d_row, // resize H ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc:50:3: : expected primary-expression before ‘int’ int d_col, // resize W ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc:51:3: : expected primary-expression before ‘int’ int batchNum, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc:52:3: : expected primary-expression before ‘int’ int depth, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc:53:3: : expected primary-expression before ‘int’ int box_number, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc:54:3: : expected primary-expression before ‘int’ int pad_size, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc:55:21:r: expected primary-expression before ‘core_version’ cnmlCoreVersion_t core_version) { ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc:55:33:r: expression list treated as compound expression in initializer [-fpermissive] cnmlCoreVersion_t core_version) { ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc:55:35:r: expected ‘,’ or ‘;’ before ‘{’ token cnmlCoreVersion_t core_version) { ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc:72:5: : ‘cnmlPluginResizeAndColorCvtParam_t’ was not declared in this scope cnmlPluginResizeAndColorCvtParam_t* param){ ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc:72:41:r: ‘param’ was not declared in this scope cnmlPluginResizeAndColorCvtParam_t* param){ ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc:72:47:r: expected ‘,’ or ‘;’ before ‘{’ token cnmlPluginResizeAndColorCvtParam_t* param){ ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc:80:5: : ‘cnmlPluginResizeAndColorCvtParam_t’ has not been declared cnmlPluginResizeAndColorCvtParam_t* param, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc: In fun ‘cnmlStatus_t cnmlCreatePluginCropFeatureAndResizeOp(cnmlBaseOp**, int*, cnmlTensor**, cnmlTensor**)’:/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc:87:30:r: base operand of ‘->’ is not a pointer int image_height = (*param)->s_row; ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc:88:29:r: base operand of ‘->’ is not a pointer int image_width = (*param)->s_col; ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc:89:29:r: base operand of ‘->’ is not a pointer int crop_height = (*param)->d_row; ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc:90:28:r: base operand of ‘->’ is not a pointer int crop_width = (*param)->d_col; ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc:91:23:r: base operand of ‘->’ is not a pointer int batch = (*param)->batchNum; ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc:92:23:r: base operand of ‘->’ is not a pointer int depth = (*param)->depth; ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc:93:28:r: base operand of ‘->’ is not a pointer int box_number = (*param)->box_number; ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc:94:26:r: base operand of ‘->’ is not a pointer int pad_size = (*param)->pad_size; ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc:95:28:r: base operand of ‘->’ is not a pointer int input2half = (*param)->input2half; ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginCropFeatureAndResizeOp/plugin_crop_feature_and_resize_op.cc:96:29:r: base operand of ‘->’ is not a pointer int output2uint = (*param)->output2uint; ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginInitOp/plugin_init_op.cc:36:3: error: ‘cnmlPluginInitOpParam_t’ wa declared in this scope cnmlPluginInitOpParam_t *param, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginInitOp/plugin_init_op.cc:36:28: error: ‘param’ was not declared in scope cnmlPluginInitOpParam_t *param, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginInitOp/plugin_init_op.cc:37:3: error: expected primary-expression e ‘int’ int size, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginInitOp/plugin_init_op.cc:38:3: error: expected primary-expression e ‘float’ float value, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginInitOp/plugin_init_op.cc:39:3: error: expected primary-expression e ‘int’ int dtype_flag, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginInitOp/plugin_init_op.cc:40:21: error: expected primary-expressionre ‘coreVersion’ cnmlCoreVersion_t coreVersion ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginInitOp/plugin_init_op.cc:41:1: error: expression list treated as cnd expression in initializer [-fpermissive] ) { ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginInitOp/plugin_init_op.cc:41:3: error: expected ‘,’ or ‘;’ before ‘ken ) { ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginInitOp/plugin_init_op.cc:54:3: error: ‘cnmlPluginInitOpParam_t’ wa declared in this scope cnmlPluginInitOpParam_t *param ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginInitOp/plugin_init_op.cc:54:28: error: ‘param’ was not declared in scope cnmlPluginInitOpParam_t *param ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginInitOp/plugin_init_op.cc:55:3: error: expected ‘,’ or ‘;’ before ‘ken ) { ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginInitOp/plugin_init_op.cc:64:3: error: ‘cnmlPluginInitOpParam_t’ ha been declared cnmlPluginInitOpParam_t param, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginInitOp/plugin_init_op.cc: In function ‘cnmlStatus_t cnmlCreatePlugtOp(cnmlBaseOp**, int, cnmlTensor**, cnmlTensor**)’:/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginInitOp/plugin_init_op.cc:68:19: error: base operand of ‘->’ is notinter int size = param->size; ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginInitOp/plugin_init_op.cc:69:22: error: base operand of ‘->’ is notinter float value = param->value; ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginInitOp/plugin_init_op.cc:74:12: error: base operand of ‘->’ is notinter if (param->dtype_flag == 2) { // half ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginInitOp/plugin_init_op.cc:77:19: error: base operand of ‘->’ is notinter } else if (param->dtype_flag == 4) { // float ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginInitOp/plugin_init_op.cc:81:65: error: base operand of ‘->’ is notinter std::cout << "MLU Init not support this data type:" << param->dtype_flag; ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginInitOp/plugin_init_op.cc:89:12: error: base operand of ‘->’ is notinter if (param->dtype_flag == 2) { ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginInitOp/plugin_init_op.cc: At global scope:/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginInitOp/plugin_init_op.cc:130:3: error: ‘cnmlPluginInitOpParam_t’ wt declared in this scope cnmlPluginInitOpParam_t param, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginInitOp/plugin_init_op.cc:131:3: error: expected primary-expressionre ‘float’ float *output ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginInitOp/plugin_init_op.cc:132:1: error: expression list treated as und expression in initializer [-fpermissive] ) { ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginInitOp/plugin_init_op.cc:132:3: error: expected ‘,’ or ‘;’ before oken ) { ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginNonMaxSuppressionOP/plugin_nonmaxsuppression_op.cc:28:5: error: ‘cuginNonMaxSuppressionOpParam_t’ was not declared in this scope cnmlPluginNonMaxSuppressionOpParam_t *param, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginNonMaxSuppressionOP/plugin_nonmaxsuppression_op.cc:28:43: error: ‘’ was not declared in this scope cnmlPluginNonMaxSuppressionOpParam_t *param, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginNonMaxSuppressionOP/plugin_nonmaxsuppression_op.cc:29:5: error: exd primary-expression before ‘int’ int len, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginNonMaxSuppressionOP/plugin_nonmaxsuppression_op.cc:30:5: error: exd primary-expression before ‘int’ int max_num, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginNonMaxSuppressionOP/plugin_nonmaxsuppression_op.cc:31:5: error: exd primary-expression before ‘float’ float iou_threshold, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginNonMaxSuppressionOP/plugin_nonmaxsuppression_op.cc:32:5: error: exd primary-expression before ‘float’ float score_threshold, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginNonMaxSuppressionOP/plugin_nonmaxsuppression_op.cc:33:23: error: eed primary-expression before ‘core_version’ cnmlCoreVersion_t core_version) ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginNonMaxSuppressionOP/plugin_nonmaxsuppression_op.cc:33:35: error: esion list treated as compound expression in initializer [-fpermissive] cnmlCoreVersion_t core_version) ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginNonMaxSuppressionOP/plugin_nonmaxsuppression_op.cc:34:1: error: exd ‘,’ or ‘;’ before ‘{’ token { ^In file included from /opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_cpu.cc:27:0:/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_cpu.h:29:17: error: variable or field ‘onehu’ declared void void onehot_cpu(cnmlPluginOneHotOpParam_t param, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_cpu.h:29:17: error: ‘cnmlPluginOneHotOpParawas not declared in this scope/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_cpu.h:30:17: error: expected primary-expresbefore ‘int’ int* indices, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_cpu.h:31:17: error: expected primary-expresbefore ‘float’ float* dst); ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_cpu.cc:29:17: error: variable or field ‘onepu’ declared void void onehot_cpu(cnmlPluginOneHotOpParam_t param, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_cpu.cc:29:17: error: ‘cnmlPluginOneHotOpPar was not declared in this scope/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_cpu.cc:30:17: error: expected primary-expre before ‘int’ int* indices, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_cpu.cc:31:17: error: expected primary-expre before ‘float’ float* dst){ ^In file included from /opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:23:0:/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_cpu.h:29:17: error: variable or field ‘onehu’ declared void void onehot_cpu(cnmlPluginOneHotOpParam_t param, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_cpu.h:29:17: error: ‘cnmlPluginOneHotOpParawas not declared in this scope/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_cpu.h:30:17: error: expected primary-expresbefore ‘int’ int* indices, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_cpu.h:31:17: error: expected primary-expresbefore ‘float’ float* dst); ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:26:5: error: ‘cnmlPluginOneHotOpParamas not declared in this scope cnmlPluginOneHotOpParam_t *param, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:26:32: error: ‘param’ was not declarethis scope cnmlPluginOneHotOpParam_t *param, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:27:23: error: expected primary-expresbefore ‘core_version’ cnmlCoreVersion_t core_version, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:28:5: error: expected primary-expressefore ‘int’ int N, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:29:5: error: expected primary-expressefore ‘int’ int H, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:30:5: error: expected primary-expressefore ‘int’ int W, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:31:5: error: expected primary-expressefore ‘int’ int C, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:32:5: error: expected primary-expressefore ‘int’ int depth, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:33:5: error: expected primary-expressefore ‘float’ float onvalue, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:34:5: error: expected primary-expressefore ‘float’ float offvalue, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:35:2: error: expected primary-expressefore ‘int’ int axis) ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:35:10: error: expression list treatedompound expression in initializer [-fpermissive] int axis) ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:36:1: error: expected ‘,’ or ‘;’ befo’ token { ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:51:5: error: ‘cnmlPluginOneHotOpParamas not declared in this scope cnmlPluginOneHotOpParam_t *param ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:51:32: error: ‘param’ was not declarethis scope cnmlPluginOneHotOpParam_t *param ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:53:1: error: expected ‘,’ or ‘;’ befo’ token { ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:61:5: error: ‘cnmlPluginOneHotOpParamas not been declared cnmlPluginOneHotOpParam_t param, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc: In function ‘cnmlStatus_t cnmlCreatenOneHotOp(cnmlBaseOp**, int, cnmlTensor**, cnmlTensor**)’:/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:65:16: error: base operand of ‘->’ isa pointer int N = param->N; ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:66:16: error: base operand of ‘->’ isa pointer int H = param->H; ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:67:16: error: base operand of ‘->’ isa pointer int W = param->W; ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:68:16: error: base operand of ‘->’ isa pointer int C = param->C; ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:69:20: error: base operand of ‘->’ isa pointer int depth = param->depth; ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:70:24: error: base operand of ‘->’ isa pointer float onvalue = param->onvalue; ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:71:25: error: base operand of ‘->’ isa pointer float offvalue = param->offvalue; ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:72:19: error: base operand of ‘->’ isa pointer int axis = param->axis; ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc: At global scope:/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:103:4: error: ‘cnmlPluginOneHotOpParawas not declared in this scope cnmlPluginOneHotOpParam_t param, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:104:4: error: expected primary-expresbefore ‘int’ int* indices, float* dst) ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:104:18: error: expected primary-expre before ‘float’ int* indices, float* dst) ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:104:28: error: expression list treatecompound expression in initializer [-fpermissive] int* indices, float* dst) ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginOneHotOp/plugin_onehot_op.cc:105:1: error: expected ‘,’ or ‘;’ bef{’ token { ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginPowerDifferenceOp/plugin_power_difference_op.cc: In function ‘cnmls_t cnmlCreatePluginPowerDifferenceOpParam(cnmlPluginPowerDifferenceOpParam**, float*, float*, int, int, cnmlCoreVersion_t, int*, int*, *)’:/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginPowerDifferenceOp/plugin_power_difference_op.cc:54:17: error: invaonversion from ‘int’ to ‘int*’ [-fpermissive] (*param)->pow = pow; ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginPowerDifferenceOp/plugin_power_difference_op.cc:58:13: error: ‘strnmlPluginPowerDifferenceOpParam’ has no member named ‘in1’ (*param)->in1 = (float *)malloc(sizeof(float) * len); ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginPowerDifferenceOp/plugin_power_difference_op.cc:59:13: error: ‘strnmlPluginPowerDifferenceOpParam’ has no member named ‘in2’ (*param)->in2 = (float *)malloc(sizeof(float) * len); ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginPowerDifferenceOp/plugin_power_difference_op.cc:63:15: error: ‘strnmlPluginPowerDifferenceOpParam’ has no member named ‘in1’ (*param)->in1[inputId] = in1[inputId]; ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginPowerDifferenceOp/plugin_power_difference_op.cc:64:15: error: ‘strnmlPluginPowerDifferenceOpParam’ has no member named ‘in2’ (*param)->in2[inputId] = in2[inputId]; ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginRangeOp/plugin_range_op.cc:28:5: error: ‘cnmlPluginRangeOpParam_t’not declared in this scope cnmlPluginRangeOpParam_t *param, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginRangeOp/plugin_range_op.cc:28:31: error: ‘param’ was not declared is scope cnmlPluginRangeOpParam_t *param, ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginRangeOp/plugin_range_op.cc:29:23: error: expected primary-expressifore ‘core_version’ cnmlCoreVersion_t core_version) ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginRangeOp/plugin_range_op.cc:29:35: error: expression list treated apound expression in initializer [-fpermissive] cnmlCoreVersion_t core_version) ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginRangeOp/plugin_range_op.cc:30:1: error: expected ‘,’ or ‘;’ beforetoken { ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginRangeOp/plugin_range_op.cc:37:5: error: ‘cnmlPluginRangeOpParam_t’not declared in this scope cnmlPluginRangeOpParam_t *param) ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginRangeOp/plugin_range_op.cc:37:31: error: ‘param’ was not declared is scope cnmlPluginRangeOpParam_t *param) ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginRangeOp/plugin_range_op.cc:38:1: error: expected ‘,’ or ‘;’ beforetoken { ^/opt/AICSE-demo-student/env/Cambricon-CNPlugin-MLU270/pluginops/PluginRangeOp/plugin_range_op.cc:46:5: error: ‘cnmlPluginRangeOpParam_t’not been declared cnmlPluginRangeOpParam_t param,大部分都是未声明,而且不是powerdifference算子的内容
0
tf集成这一步bash build_cnplugin.sh --mlu200报错
我的回复:#3w3jc 回复你这报错的图没截全吧?有可能是上面一个错误导致很多其他报错。上面还有无数个这种错误。。。请您看下楼下
0
tf集成这一步bash build_cnplugin.sh --mlu200报错
我的回复:#1Jusbean 回复第三个报错应该是需要在cnplugin.h里边声明一下cnmlPluginRangeOpParam_t这个类型。应该是用typedef声明的,可以参考这个头文件里其他的代码。(但是应该是powerdifference的算子吧,不是range算子。)然后其他的报错可能有语法方面的吧?展开上面还有很多这样的报错,都是没用声明,而且不是powerdifference算子,都是其他的算子报错。。。我觉得这个太奇怪了
0
请问大家实验一运行make.sh的时候提示curt.h文件不存在是什么情况,这个头文件应该默认就已经存在了,这是什么情况呢
我的回复:#1w3jc 回复环境配置env.sh运行了吗?十分感谢!环境初始化操作遗漏了
0
Github
开发平台
文档中心
新手必读
官方微信
版权所有 © 2024 寒武纪 Cambricon.com 备案/许可证号:
京ICP备17003415号-1
关闭