Function: bundle_unload
Function Usage
Unloads the model loaded by calling acl.mdl.bundle_load_from_file or acl.mdl.bundle_load_from_mem to release resources after model inference is complete.
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 aclmdlBundleUnload(uint32_t bundleId)
- Python Function
1ret = acl.mdl.bundle_unload(bundle_id)
Parameters
|
Parameter |
Description |
|---|---|
|
bundle_id |
Int, bundle_id returned after the model is successfully loaded through the acl.mdl.bundle_load_from_file or acl.mdl.bundle_load_from_mem API. |
Returns
|
Return Value |
Description |
|---|---|
|
ret |
Int, error code. 0 indicates success, and other values indicate failure. |
Parent topic: Model Loading and Unloading