---
title: FlowGraph构造函数和析构函数
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/dataflowdevg/dfrefc_23_0019.html
sourcePath: /source/zh/canncommercial/900/others/dataflowdevg/dfrefc_23_0019.html
indexId: fff5411ab9d1978f8d58685fb60a0a3cf2c678303bb9d1f6126b3d4bd5db9c3669
---
# FlowGraph构造函数和析构函数

#### 产品支持情况

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


#### 函数功能

FlowGraph构造函数和析构函数，构造函数会返回一张空的FlowGraph图。


#### 函数原型

```
FlowGraph(const char *name)
~FlowGraph()
```


#### 参数说明

| 参数名 | 输入/输出 | 描述 |
| --- | --- | --- |
| name | 输入 | FlowGraph的名称。 |


#### 返回值

返回一张空的FlowGraph图。


#### 异常处理

无。


#### 约束说明

无。
