ReleaseTo
Function Usage
Passes the aclOpExecutor pointer saved in UniqueExecutor to executor output in the L2 first phase.
Prototype
void ReleaseTo(aclOpExecutor **executor)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
executor |
Output |
Output parameter, which is used to assign the aclOpExecutor pointer in UniqueExecutor to *executor. |
Returns
None
Constraints
executor must not be empty.
Example
1 2 3 4 5 6 | // Fixed writing of aclnn void aclnnAddGetWorkspaceSize(..., uint64_t *workspaceSize, aclOpExecutor **executor) { auto uniqueExecutor = CREATE_EXECUTOR(); ...... uniqueExecutor.ReleaseTo(executor); } |
Parent topic: op_executor