aclmdlBundleUnload

Applicability

Product

Supported

Atlas A3 training products / Atlas A3 inference products

Atlas A2 training products / Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Description

After model inference is complete, this API can be called to unload the model loaded by calling aclmdlBundleLoadFromFile or aclmdlBundleLoadFromMem to release resources.

This API must be used with other APIs to dynamically update variables. For details, see aclmdlBundleLoadFromFile.

Prototype

aclError aclmdlBundleUnload(uint32_t bundleId)

Parameters

Parameter

Input/Output

Description

bundleId

Input

Bundle ID returned after a model is successfully loaded by calling aclmdlBundleLoadFromFile or aclmdlBundleLoadFromMem.

Returns

0 on success; else, failure. For details, see aclError.

See Also

For details about the API call sequence and sample code, see Weight Update (System-managed Memory).