aclrtDestroyBinary

Description

Destroys the data of the aclrtBinary type created by the aclrtCreateBinary call. Only Ascend C custom operators are supported.

Note that only the aclrtBinary data is destroyed. The data memory transferred when the aclrtBinaryCreate API is called must be freed by the user in a timely manner. Otherwise, the memory may be abnormal.

Prototype

aclError aclrtDestroyBinary(aclrtBinary binary)

Parameters

Parameter

Input/Output

Description

binary

Input

Pointer to data of the aclrtBinary type.

Returns

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