aclmdlUnload

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product / Atlas A3 inference product

Atlas A2 training product / Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function Usage

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 aclrtCreateContext.

Prototype

1
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.

Example

For the API call example, see Unloading a Model.