diff --git a/third_party/mindspore/kits/mindspore_lib.ndk.json b/third_party/mindspore/kits/mindspore_lib.ndk.json index b5f769a3de85c7b5f7e4fbbf786197ab4e06b8e0..6bf68c663d9aeba6e18c1e46b25d134ef9659ff8 100644 --- a/third_party/mindspore/kits/mindspore_lib.ndk.json +++ b/third_party/mindspore/kits/mindspore_lib.ndk.json @@ -334,5 +334,9 @@ { "first_introduced": "11", "name": "OH_AI_ExportWeightsCollaborateWithMicro" + }, + { + "first_introduced": "20", + "name": "OH_AI_ModelLoadConfig" } ] diff --git a/third_party/mindspore/kits/model.h b/third_party/mindspore/kits/model.h index 1f597803525c9ec19704ae9e2eea8e442ac616f1..d275474ae03a6dca0ba5070ee8cedf3557fc0560 100644 --- a/third_party/mindspore/kits/model.h +++ b/third_party/mindspore/kits/model.h @@ -395,7 +395,15 @@ OH_AI_API OH_AI_Status OH_AI_ExportWeightsCollaborateWithMicro(OH_AI_ModelHandle const char *weight_file, bool is_inference, bool enable_fp16, char **changeable_weights_name, size_t num); - +/** + * @brief Load the config file of the model. + * + * @param model Model object handle. + * @param config_path The config file path. + * @return OH_AI_Status. + * @since 20 + */ +OH_AI_API OH_AI_Status OH_AI_ModelLoadConfig(OH_AI_ModelHandle model, const char *config_path); #ifdef __cplusplus } #endif