Function: bundle_unload

Applicability

Product

Supported (√/x)

Atlas A3 training products / Atlas A3 inference products

Atlas A2 training products / Atlas A2 inference products

Atlas training products

Atlas inference products

Atlas 200I/500 A2 inference products

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
    1
    aclError aclmdlBundleUnload(uint32_t bundleId)
    
  • Python Function
    1
    ret = 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.

Reference

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