aclrtBinaryUnLoad
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Deletes the operator binary data to which binHandle points, and also deletes the operator binary data copied to the device when the operator binary file is loaded.
Prototype
aclError aclrtBinaryUnLoad(aclrtBinHandle binHandle)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
binHandle |
Input |
Handle of operator binary data. This handle is generated when aclrtBinaryLoadFromFile, aclrtBinaryLoadFromData, or aclrtBinaryLoad is called. |
Returns
0 on success; else, failure. For details, see aclError.
Restrictions
When this API is called to delete the operator binary data, it must be in the same context as aclrtBinaryLoadFromFile, aclrtBinaryLoadFromData, or aclrtBinaryLoad. In this way, the operator binary data copied to the device when the operator binary file is loaded can be deleted together. Otherwise, the operator binary data on the device may fail to be deleted.