---
title: AddScopeFeature
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/TensorFlowCommercial/latest/Convergence/tfscopedevg/atlassfpapi_07_0177.html
sourcePath: /source/zh/TensorFlowCommercial/900/Convergence/tfscopedevg/atlassfpapi_07_0177.html
indexId: 3cdbfb94682078810921daf89c64dde8e455babebeaf40834bf6659b75d5616b84
---
# AddScopeFeature

#### 产品支持情况

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


#### 函数功能

添加ScopeFeature对象到ScopePattern。该函数将传入的feature对象复制到内部容器中，支持链式调用。


#### 函数原型

```
ScopePattern &AddScopeFeature(ScopeFeature feature);
```


#### 参数说明

| 参数名 | 输入/输出 | 描述 |
| --- | --- | --- |
| feature | 输入 | ScopeFeature对象 |


#### 返回值

| 参数名 | 描述 |
| --- | --- |
| \- | 本实例对象的引用 |


#### 约束说明

无。
