Function: destroy_binary

Applicability

Product

Supported (√/x)

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas training products

Atlas inference products

Atlas 200I/500 A2 inference products

Function Usage

Destroys the 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. The data memory transferred when the acl.rt.create_binary API is called must be freed by the user in a timely manner. Otherwise, the memory may be abnormal.

Prototype

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

Parameter Description

Parameter

Description

binary

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

Return Value Description

Return Value

Description

ret

Int, 0 on success; else, failure.