aclrtBinaryUnLoad

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

Description

Deletes the operator binary data to which binHandle points, and also deletes the operator binary data copied to the device when the operator binary file is loaded.

Prototype

1
aclError aclrtBinaryUnLoad(aclrtBinHandle binHandle)

Parameters

Parameter

Input/Output

Description

binHandle

Input

Handle of operator binary data. For details about the type definition, see aclrtBinHandle.

The handle is generated when the aclrtBinaryLoadFromFile, aclrtBinaryLoadFromData, or aclrtBinaryLoad API is called.

Returns

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

Restrictions

When this API is called to delete the operator binary data, it must be in the same context as aclrtBinaryLoadFromFile, aclrtBinaryLoadFromData, or aclrtBinaryLoad. In this way, the operator binary data copied to the device when the operator binary file is loaded can be deleted together. Otherwise, the operator binary data on the device may fail to be deleted.