Function: destroy_binary

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas training product

Atlas inference product

Atlas 200I/500 A2 inference product

Description

Destroys data of the acl.rt.binary type created by calling the acl.rt.create_binary API. Only Ascend C custom operators are supported.

Note that only the acl.rt.binary data is destroyed. The data memory transferred when the acl.rt.create_binary API is called needs to be released by the user in a timely manner. Otherwise, a memory exception may occur.

Prototype

  • C Prototype
    1
    aclError aclrtDestroyBinary(aclrtBinary binary)
    
  • Python Function
    1
    ret = acl.rt.destroy_binary(binary)
    

Parameters

Parameter

Description

binary

Int, pointer address of the acl.rt.binary type to be destroyed.

Return Value

Return Value

Description

ret

Int, 0 on success; else, failure.