Function: binary_unload

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

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

Prototype

  • C Prototype
    1
    aclError aclrtBinaryUnLoad(aclrtBinHandle binHandle)
    
  • Python Function
    1
    ret = acl.rt.binary_unload(bin_handle)
    

Parameter Description

Parameter

Description

bin_handle

Int, handle pointing to the operator binary. This handle is generated when the acl.rt.binary_load API is called.

Return Value Description

Return Value

Description

ret

Int, error code: 0 on success; else, failure.

Restrictions

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