Function: bundle_load_from_mem
Function Usage
Loads offline model data from memory if variables need to be dynamically updated during model execution. The model workspace is managed by the system.
This API must be used with other APIs to dynamically update variables. For details, see the description in acl.mdl.bundle_load_from_file.
Prototype
- C Prototype
1aclError aclmdlBundleLoadFromMem(const void *model, size_t modelSize, uint32_t *bundleId)
- Python Function
1bundle_id, ret = acl.mdl.bundle_load_from_mem(model, model_size)
Parameters
Returns
|
Return Value |
Description |
|---|---|
|
bundle_id |
Int. After the system successfully loads the model, bundle_id is returned as the flag for identifying the model in subsequent operations. |
|
ret |
Int, error code. 0 indicates success, and other values indicate failure. |
Parent topic: Model Loading and Unloading