---
title: aclDestroyTensorList
description: "销毁通过aclCreateTensorList接口创建的aclTensorList。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/aolapi/operatorlist_00028.html
sourcePath: /source/zh/canncommercial/900/API/aolapi/operatorlist_00028.html
indexId: 1f6240d37140ee594a6b100815fc5d603a0a1d6d835e6e56039c4fff03d3dc7264
---
# aclDestroyTensorList

#### 功能说明

销毁通过aclCreateTensorList接口创建的aclTensorList。


#### 函数原型

```
aclnnStatus aclDestroyTensorList(const aclTensorList *array)
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| array | 输入 | 需要销毁的aclTensorList。 |


#### 返回值说明

返回0表示成功，返回其他值表示失败，返回码列表参见公共接口返回码。


#### 约束说明

对于aclTensorList内的aclTensor不需要重复释放。


#### 调用示例

接口调用请参考aclCreateTensorList的调用示例。
