aclprofGetStepTimestamp
Description
Sets the start timestamp and end timestamp of an iteration (or step), to display the profiling analysis result by step after training is implemented by using single-operator loading and execution APIs.
Prototype
aclError aclprofGetStepTimestamp(aclprofStepInfo* stepInfo, aclprofStepTag tag, aclrtStream stream)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
stepinfo |
Input |
Step information. Call aclprofCreateStepInfo to create data of the aclprofStepInfo type in advance. |
tag |
Input |
Step start timestamp and end timestamp. Pass the enumerated value ACL_STEP_START at the step start and the enumerated value ACL_STEP_END at the step end. |
stream |
Input |
Stream. |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.