其中主要错误在于cnmlCreatePluginOp这个函数传参少了, 其他几个样例中这里分别有4个参数 input_cnml_tensors, input_num, output_cnml_tensors, output_num, 请问这里这几个参数分别代表什么意思?展开
其中主要错误在于cnmlCreatePluginOp这个函数传参少了, 其他几个样例中这里分别有4个参数 input_cnml_tensors, input_num, output_cnml_tensors, output_num, 请问这里这几个参数分别代表什么意思?展开
/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);展开
/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);
请登录后评论