diff --git a/third_party/mindspore/kits/model.h b/third_party/mindspore/kits/model.h index 1f597803525c9ec19704ae9e2eea8e442ac616f1..cbb7bdbd6169e70bc5d446f71b23f05039cdfe97 100644 --- a/third_party/mindspore/kits/model.h +++ b/third_party/mindspore/kits/model.h @@ -72,7 +72,7 @@ typedef bool (*OH_AI_KernelCallBack)(const OH_AI_TensorHandleArray inputs, const * @return Model object handle. * @since 9 */ -OH_AI_API OH_AI_ModelHandle OH_AI_ModelCreate(void); +OH_AI_API OH_AI_ModelHandle OH_AI_ModelCreate(); /** * @brief Destroy the model object. @@ -374,7 +374,7 @@ OH_AI_API OH_AI_Status OH_AI_ExportModel(OH_AI_ModelHandle model, OH_AI_ModelTyp * @return OH_AI_Status. * @since 11 */ -OH_AI_API OH_AI_Status OH_AI_ExportModelBuffer(OH_AI_ModelHandle model, OH_AI_ModelType model_type, void *model_data, +OH_AI_API OH_AI_Status OH_AI_ExportModelBuffer(OH_AI_ModelHandle model, OH_AI_ModelType model_type, char **model_data, size_t *data_size, OH_AI_QuantizationType quantization_type, bool export_inference_only, char **output_tensor_name, size_t num); diff --git a/third_party/mindspore/kits/types.h b/third_party/mindspore/kits/types.h index 0b3d269653c987e27e7e342521cd6847c47fd919..364599535a0ed80213b50c9c9721b45382db18fc 100644 --- a/third_party/mindspore/kits/types.h +++ b/third_party/mindspore/kits/types.h @@ -108,7 +108,7 @@ typedef enum OH_AI_PerformanceMode { /** High performance mode */ OH_AI_PERFORMANCE_HIGH = 3, /** Ultimate performance mode */ - OH_AI_PERFORMANCE_EXTREME = 4 + OH_AI_PERFORMANCE_EXTREME = 4, } OH_AI_PerformanceMode; /** @@ -124,7 +124,7 @@ typedef enum OH_AI_Priority { /** Medium priority */ OH_AI_PRIORITY_MEDIUM = 2, /** High priority */ - OH_AI_PRIORITY_HIGH = 3 + OH_AI_PRIORITY_HIGH = 3, } OH_AI_Priority; /**