model.h¶
-
typedef struct mmdeploy_model *mmdeploy_model_t¶
-
int mmdeploy_model_create_by_path(const char *path, mmdeploy_model_t *model)¶
Create SDK Model instance from given model path.
- Parameters
path – [in] model path
model – [out] sdk model instance that must be destroyed by mmdeploy_model_destroy
- Returns
status code of the operation
-
int mmdeploy_model_create(const void *buffer, int size, mmdeploy_model_t *model)¶
Create SDK Model instance from memory.
- Parameters
buffer – [in] a linear buffer contains the model information
size – [in] size of
buffer
in bytesmodel – [out] sdk model instance that must be destroyed by mmdeploy_model_destroy
- Returns
status code of the operation
-
void mmdeploy_model_destroy(mmdeploy_model_t model)¶
Destroy model instance.
- Parameters
model – [in] sdk model instance created by mmdeploy_model_create_by_path or mmdeploy_model_create