看看cnplugin.h里面自己定义的部分什么地方有没有少了个分号。
要替换的头文件替换了嘛?
全部的报错信息如下:
/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算子的内容
请登录后评论