Function: unload
Applicable Products
|
Product |
Supported (√/x) |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function Usage
Uninstalls the model and releases resources after the model inference is complete.
Prototype
- C Prototype
1aclError aclmdlUnload(uint32_t modelId)
- Python Function
1ret = acl.mdl.unload(model_id)
Parameter Description
|
Parameter |
Description |
|---|---|
|
model_id |
Int, ID of the model to unload. |
Return Value Description
|
Return Value |
Description |
|---|---|
|
ret |
Int, error code: 0 on success; else, failure. |
Restrictions
Parent topic: Model Loading and Unloading