---
title: ScopeAttrValue构造函数和析构函数
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/TensorFlowCommercial/latest/Convergence/tfscopedevg/atlassfpapi_07_0155.html
sourcePath: /source/zh/TensorFlowCommercial/900/Convergence/tfscopedevg/atlassfpapi_07_0155.html
indexId: c025c27c0fcefa202d35af4b55a142bdd5fe64c099814807360d64b79a6c879584
---
# ScopeAttrValue构造函数和析构函数

#### 产品支持情况

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


#### 函数功能

ScopeAttrValue构造函数和析构函数。


#### 函数原型

```
ScopeAttrValue();
ScopeAttrValue(ScopeAttrValue const &attr_value);
ScopeAttrValue &operator=(ScopeAttrValue const &attr_value);
~ScopeAttrValue();
```


#### 参数说明

| 参数名 | 输入/输出 | 描述 |
| --- | --- | --- |
| attr\_value | 输入 | 属性值 |


#### 返回值

ScopeAttrValue构造函数返回ScopeAttrValue类型的对象。


#### 异常处理

无。


#### 约束说明

无。
