---
title: ToStringInfo
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendgraphapi/atlasgeapi_07_0342.html
sourcePath: /source/zh/canncommercial/900/API/ascendgraphapi/atlasgeapi_07_0342.html
indexId: 183c6eff5080b44501a7464cd21ea7ca74da752437a96264ea53081301392a9172
---
# ToStringInfo

#### 产品支持情况

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


#### 头文件/库文件

- 头文件：#include <ge/ge_graph_compile_summary.h>
- 库文件：libge_compiler.so


#### 功能说明

获取当前逻辑流的信息。


#### 函数原型

```
AscendString ToStringInfo() const
```


#### 参数说明

无


#### 返回值说明

AscendString类型的逻辑流信息，例如：

```
logic_stream_id: 0, user_stream_label: 11, is_assigned_by_user_stream_pass: false, attached_stream_ids: , physical_model_stream_num: 1, hccl_followed_stream_num: 0.
```

对应信息为：

- 逻辑流ID：0，
- 用户流标签：11，
- 是否来自用户注册的流分配Pass：false，
- 附属从流ID： ，
- 实际物理流数量：1，
- 通信从流数量：0。


#### 约束说明

无
