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

#### 产品支持情况

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


#### 函数功能

获取Scope关联的子Scope，子Scope关联的子Scope，层层递归下去，取得所有相关联的Scope集合。


#### 函数原型

```
const std::vector<Scope *> &GetAllSubScopes() const;
```


#### 参数说明

无。


#### 返回值

| 参数名 | 描述 |
| --- | --- |
| \- | 所有相关联的Scope集合 |


#### 约束说明

无。
