aclDestroyAclOpExecutor
Description
aclOpExecutor is a built-in operator executor, a container for executing operator computation. You can use it without knowing how it works inside.
- For an aclOpExecutor that is not in the reuse state, the framework automatically creates an aclOpExecutor when the first-phase API aclxxXxxGetWorkspaceSize is called, and automatically destroys the aclOpExecutor when the second-phase API aclxxXxx is called. You do not need to manually call this API for destroying resources.
- For an aclOpExecutor in the reuse state (aclSetAclOpExecutorRepeatable is called to enable reuse), the operator executor is managed by users. As such, this API needs to be explicitly called to destroy the aclOpExecutor.
Prototype
aclnnStatus aclDestroyAclOpExecutor(aclOpExecutor *executor)
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
executor |
Input |
aclOpExecutor to be destroyed. |
Return Value
0 on success; otherwise, failure. For details about the return codes, see Common API Return Codes.
Possible causes:
- Error code 561103: The executor is a null pointer.
Constraints
This API must be used together with aclSetAclOpExecutorRepeatable. They are used to reuse and destroy the aclOpExecutor, respectively.
Example
For details about API calls, see the call examples in aclSetAclOpExecutorRepeatable.
Parent topic: Common APIs