Unloading a Model
For details about the API call sequence for model unloading, see pyACL API Call Sequence.
Principles
After model inference is complete, you need to unload the model by calling acl.mdl.unload, and destroy the model description of the aclmdlDesc type.
Sample Code
1 2 3 4 5 6 7 |
# 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 Inference