diff --git a/third_party/mindspore/kits/model.h b/third_party/mindspore/kits/model.h index 1f597803525c9ec19704ae9e2eea8e442ac616f1..903a65fc90f468dbf6949ca43babb4ad57df463c 100644 --- a/third_party/mindspore/kits/model.h +++ b/third_party/mindspore/kits/model.h @@ -396,6 +396,16 @@ OH_AI_API OH_AI_Status OH_AI_ExportWeightsCollaborateWithMicro(OH_AI_ModelHandle 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