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

#### 产品支持情况

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


#### 头文件/库文件

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


#### 功能说明

将Match Result序列化为字符串。


#### 函数原型

```
AscendString ToAscendString() const
```


#### 参数说明

无


#### 返回值说明

| 参数名 | 类型 | 说明 |
| --- | --- | --- |
| \- | AscendString | 以字符串的形式描述Match Result的Pattern name，及Pattern Node和Match Node name的对应关系。 |


#### 约束说明

无
