---
title: 函数：destroy_step_info
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/runtimeapi/aclpythondevg_01_0890.html
sourcePath: /source/zh/canncommercial/900/API/runtimeapi/aclpythondevg_01_0890.html
indexId: 5e2e97ef8c247d95231d6d69fd17a90edf6b128ffd44e72eecdbf6d32d4fc3f371
---
# 函数：destroy_step_info

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | √ |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 训练系列产品 | √ |
| Atlas 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | √ |


#### 功能说明

销毁通过acl.prof.create_step_info接口创建的aclprofStepInfo类型的数据。


#### 函数原型

- C函数原型
  1 void aclprofDestroyStepInfo (aclprofStepInfo * stepinfo)

- python函数
  1 acl.prof.destroy_step_info(stepinfo)


#### 参数说明

| 参数名 | 说明 |
| --- | --- |
| stepinfo | int，指定迭代信息，需提前调用acl.prof.create\_step\_info接口创建aclprofStepInfo类型的数据。 |


#### 返回值说明

无


#### 约束说明

- 与  acl.prof.create_step_info
接口配对使用，先调用acl.prof.create_step_info接口再调用acl.prof.destroy_step_info接口。
- 同一aclprofStepInfo数据重复调用acl.prof.destroy_step_info接口，会出现重复释放内存的报错。
