---
title: 函数：destroy_tensor_desc
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendgraphapi/aclpythondevg_01_0024.html
sourcePath: /source/zh/canncommercial/900/API/ascendgraphapi/aclpythondevg_01_0024.html
indexId: 707b9019876d5e356b2d29aa465d456aa396d177360b8b870c963eedc0ceea5675
---
# 函数：destroy_tensor_desc

#### 产品支持情况

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


#### 功能说明

销毁aclTensorDesc类型的数据。


#### 函数原型

- C函数原型
  1 void aclDestroyTensorDesc(const aclTensorDesc *desc)

- python函数
  1 acl.destroy_tensor_desc(desc)


#### 参数说明

| 参数名 | 说明 |
| --- | --- |
| desc | int，待销毁的aclTensorDesc类型的指针地址。 |


#### 返回值说明

无
