aclrtBinaryUnLoad

Description

Deletes the operator binary data pointed to by binHandle and the operator binary data copied to the device through the aclrtBinaryLoad API. Only Ascend C custom operators are supported.

Restrictions

When this API is called to delete the binary data of an operator, it must be in the same context as the aclrtBinaryLoad API. In this way, the binary data of the operator copied to the device through the aclrtBinaryLoad API can be deleted at the same time. Otherwise, the binary data of the operator on the device may fail to be deleted.

Prototype

aclError aclrtBinaryUnLoad(aclrtBinHandle binHandle)

Parameters

Parameter

Input/Output

Description

binHandle

Input

Handle pointing to the operator binary.

The handle is generated when the aclrtBinaryLoad API is called.

Returns

The value 0 indicates success, and other values indicate failure. For details, see aclError.