Function: create_step_info
Applicable Products
- Ascend 950PR&950DT products: Supported
- Atlas A3 products: Supported
- Atlas A2 products: Supported
- Atlas 200I/500 A2 inference products: Supported
- Atlas inference products: Supported
- Atlas training products: Supported
Function
Creates data of the aclprofStepInfo type as step information.
Prototype
-
C Prototype
aclprofStepInfo* aclprofCreateStepInfo(void) -
Python Function
info = acl.prof.create_step_info()
Parameters
None
Return Values
| Return Value | Description |
|---|---|
| info | Int, pointer address of the aclprofStepInfo type.Success: aclprofStepInfo typeFailure: None |
Constraints
- Use the acl.prof.destroy_step_info API to destroy data of the
aclprofStepInfotype. If data is not destroyed, the memory cannot be freed. - This API is used in pair with acl.prof.destroy_step_info. Call
acl.prof.create_step_infobeforeacl.prof.destroy_step_info. - The same tag can be configured only once for a single
aclprofStepInfoobject, to avoid profiling analysis errors.