Function: destroy_binary
Applicable Products
- Ascend 950PR&950DT products: Supported
- Atlas A3 products: Supported
- Atlas A2 products: Supported
- Atlas 200I/500 A2 inference products: Supported
- Atlas inference products: Supported
- Atlas training products: Supported
Function
Destroys data of the acl.rt.binary type created by the acl.rt.create_binary call. Only Ascend C custom operators are supported.
Note that only the acl.rt.binary data is destroyed. Release the data memory transferred when acl.rt.create_binary is called promptly. Otherwise, a memory exception may occur.
Prototype
-
C Prototype
aclError aclrtDestroyBinary(aclrtBinary binary) -
Python Function
ret = acl.rt.destroy_binary(binary)
Parameters
| Parameter | Description |
|---|---|
| binary | Int, pointer address of the acl.rt.binary type to be destroyed. |
Return Values
| Return Value | Description |
|---|---|
| ret | Int. If 0 is returned, the operation is successful. If other values are returned, the operation fails. |