Function: binary_unload

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

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)
    

Parameters

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

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.