Function: destroy_step_info

Applicable Products

Product

Supported (√/x)

Ascend 950PR/Ascend 950DT

√

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas training products

√

Atlas inference products

√

Atlas 200I/500 A2 inference products

√

Description

Destroys data of the aclprofStepInfo type created by the acl.prof.create_step_info call.

Prototype

  • C Prototype
    1
    void aclprofDestroyStepInfo (aclprofStepInfo * stepinfo)
    
  • Python Function
    1
    acl.prof.destroy_step_info(stepinfo)
    

Parameters

Parameter

Description

stepinfo

Int, step information. The acl.prof.create_step_info API needs to be called in advance to create data of the aclprofStepInfo type.

Return Values

None

Restrictions

  • Use this API together with the acl.prof.create_step_info API. Call acl.prof.create_step_info first and then acl.prof.destroy_step_info.
  • If the same aclprofStepInfo pointer repeatedly calls the acl.prof.destroy_step_info API, an error indicating that the memory is freed repeatedly is reported.