aclmdlUnload

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

Unloads a model and cleans up allocations after model inference is complete. Ensure that the model is not being used by other API calls.

The operations of loading, executing, and unloading a model must be performed in the same context. For details about how to create a context, see or .

Prototype

aclError aclmdlUnload(uint32_t modelId)

Parameters

Parameter

Input/Output

Description

modelId

Input

ID of the model to unload.

Returns

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

See Also

For the API call sequence, see API Call Sequence.