Function: bundle_unload

Applicable Products

  • Ascend 950PR&950DT products: Supported
  • Atlas A3 products: Supported
  • Atlas A2 products: Supported
  • Atlas 200I/500 A2 inference products: Supported
  • Atlas inference products: Supported
  • Atlas training products: Supported

Function

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

    aclError aclmdlBundleUnload(uint32_t bundleId)
    
  • Python Function

    ret = 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 API or the acl.mdl.bundle_load_from_mem API.

Return Values

Return Value Description
ret Int, error code: 0 on success; else, failure.

Reference

For details about the API call sequence and sample code, see Weight Update.