Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
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.
1 | aclError aclrtBinaryUnLoad(aclrtBinHandle binHandle) |
1 | ret = acl.rt.binary_unload(bin_handle) |
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 |
|---|---|
ret |
Int, error code. 0 on success; else, failure. |
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.