aclmdlBundleUnloadModel

Applicable Products

Product

Supported

Ascend 950PR / Ascend 950DT

√

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

√

Function Usage

Unloads a graph from a model.

Prototype

1
aclError aclmdlBundleUnloadModel(uint32_t bundleId, uint32_t modelId)

Parameters

Parameter

Input/Output

Description

bundleId

Input

Bundle ID returned after the model is successfully initialized by calling aclmdlBundleInitFromFile or aclmdlBundleInitFromMem.

modelId

Input

ID of the graph to be unloaded.

Returns

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

Example

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