Model Unloading
For details about the API call sequence for model unloading, see API Call Sequence.
Principles
After model inference is complete, use the acl.mdl.unload API to unload the model and destroy the model description of the aclmdlDesc type.
Sample Code
# Unload the model.
ret = acl.mdl.unload(self.model_id)
# Destroy the model description.
if self.model_desc:
ret = acl.mdl.destroy_desc(self.model_desc)
self.model_desc = None
Parent topic: Model Management