aclDestroyAclOpExecutor
Function Usage
aclOpExecutor is an operator executor defined by the framework. It is a container for executing operator computing. You can directly use it without paying attention to its internal implementation.
- 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 releases the aclOpExecutor when the second-phase API aclxxXxx is called. You do not need to manually call this API for the destroying.
- 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)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
executor |
Input |
aclOpExecutor to be destroyed. |
Returns
0 on success; else, failure. For details about the return codes, see Common APIs and Return Codes.
Possible causes:
- If error code 561103 is returned, executor is a null pointer.
Constraints
This API must be used together with aclSetAclOpExecutorRepeatable. They are used to reuse and destroy the aclOpExecutor, respectively.
Examples
For details about API calls, see the examples in aclSetAclOpExecutorRepeatable.
Parent topic: Common APIs