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

#### 产品支持情况

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


#### 函数功能

获取和Scope相关联的nodes map。

其中包括scope本身关联的node，子scope关联的node，层层递归下去，取得所有相关联的nodes。


#### 函数原型

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


```
const std::unordered_map<std::string, ge::OperatorPtr> &AllNodesMap() const;
Status AllNodesMap(std::unordered_map<AscendString, ge::OperatorPtr> &node_map) const;
```


#### 参数说明

| 参数名 | 输入/输出 | 描述 |
| --- | --- | --- |
| node\_map | 输出 | Scope的nodes map |


#### 返回值

| 参数名 | 描述 |
| --- | --- |
| \- | Scope的nodes map |


#### 约束说明

无。
