---
title: GetAllSubScopes
description: "| 产品 | 是否支持 |"
url: "https://www.hiascend.com/document/detail/zh/TensorFlowCommunity/920/Convergence/tfscopedevg/atlassfpapi_07_0112.html"
---

# GetAllSubScopes

#### 产品支持情况

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


#### 函数功能

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


#### 函数原型

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


#### 参数说明

无。


#### 返回值

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


#### 约束说明

无。
