aclrtBinaryUnLoad

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

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

Operator binary handle. 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.