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

#### 产品支持情况

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


#### 功能说明

销毁通过acl.op.create_attr接口创建的aclopAttr类型的数据。


#### 函数原型

- C函数原型
  1 void aclopDestroyAttr(const aclopAttr *attr)

- python函数
  1 acl.op.destroy_attr(attr)


#### 参数说明

| 参数名 | 说明 |
| --- | --- |
| attr | int，待销毁的aclopAttr类型数据指针地址，此对象使用调用acl.op.create\_attr创建。 |


#### 返回值说明

无
