Function: load_from_mem
Function Usage
Loads an offline model from memory. The model workspace is managed by the system.
Returns the model ID after the model is loaded. The model ID is used for model identification in subsequent operations.
Prototype
- C Prototype
1aclError aclmdlLoadFromMem(const void* model, size_t modelSize, uint32_t* modelId)
- Python Function
1model_id, ret = acl.mdl.load_from_mem(model, model_size)
Parameters
Returns
|
Return Value |
Description |
|---|---|
|
model_id |
Int, pointer address of the model ID generated after the system loads the model. |
|
ret |
Int, error code. 0 indicates success, and other values indicate failure. |
Parent topic: Model Loading and Unloading