Function: binary_unload
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
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
1aclError aclrtBinaryUnLoad(aclrtBinHandle binHandle)
- Python Function
1ret = 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.