Function: bundle_unload
Applicability
|
Product |
Supported (√/x) |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
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 needs to be used with other APIs to dynamically update variables. For details, see acl.mdl.bundle_load_from_file.
Prototype
- C Prototype
1aclError aclmdlBundleUnload(uint32_t bundleId)
- Python Function
1ret = acl.mdl.bundle_unload(bundle_id)
Parameter Description
|
Parameter |
Description |
|---|---|
|
bundle_id |
Int, bundle_id returned after the model is successfully loaded through the acl.mdl.bundle_load_from_file API or acl.mdl.bundle_load_from_mem API. |
Return Value Description
|
Return Value |
Description |
|---|---|
|
ret |
Int, error code: 0 on success; else, failure. |