Function: bundle_load_from_mem
Applicable Products
|
Product |
Supported (√/x) |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
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 needs to be used with other APIs to dynamically update variables. For details, see 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)
Parameter Description
Return Value Description
|
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 on success; else, failure. |