---
title: SetSubType
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/TensorFlowCommunity/latest/Convergence/tfscopedevg/atlassfpapi_07_0174.html
sourcePath: /source/zh/TensorFlowCommunity/910/Convergence/tfscopedevg/atlassfpapi_07_0174.html
indexId: adacd6e06301a100f96dd810d2d4e6ea7d915a97f9fa817e26ae891402a3e27983
---
# SetSubType

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Ascend 950PR / Ascend 950DT | √ |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | √ |
| Atlas 推理系列产品 | √ |
| Atlas 训练系列产品 | √ |


#### 函数功能

Scope匹配到融合规则之后，设置该Scope的类型。


#### 函数原型

数据类型为string的接口后续版本会废弃，建议使用数据类型为非string的接口。


```
ScopePattern &SetSubType(const std::string &sub_type);
ScopePattern &SetSubType(const char_t *sub_type);
```


#### 参数说明

| 参数名 | 输入/输出 | 描述 |
| --- | --- | --- |
| sub\_type | 输入 | 子类型名称 |


#### 返回值

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


#### 约束说明

无。
