L2_DFX_PHASE_1
Function Usage
Collects the delay statistics of the L2 first-phase API aclnnXxxGetWorkspaceSize and prints the input parameters. It must be called at the beginning of the first-phase API.
Prototype
L2_DFX_PHASE_1(APIName, IN, OUT)
The following are associated APIs called by the preceding macro definitions:
#define DFX_IN(...) std::make_tuple(__VA_ARGS__)
#define DFX_OUT(...) std::make_tuple(__VA_ARGS__)
Parameters
Constraints
This API must be called at the entry of the L2 first-phase API. Otherwise, the delay statistics may be inaccurate. The passed parameters must be the same as those in the parameter list of the L2 API.
Example
1 2 | // Collect the delay statistics of the L2 first-phase API of the abs operator and prints parameters. self is the input of the abs operator, and out is the output of the abs operator. L2_DFX_PHASE_1(aclnnAbs, DFX_IN(self), DFX_OUT(out)); |
Parent topic: Common Macros and Classes