---
title: SetOutputs
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/dataflowdevg/dfrefc_23_0021.html
sourcePath: /source/zh/canncommercial/900/others/dataflowdevg/dfrefc_23_0021.html
indexId: 62e05c739c833a7205d1968b11eeba4e96f902d21e549995e589175d48aaa71069
---
# SetOutputs

#### 产品支持情况

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


#### 函数功能

设置FlowGraph的输出节点，并返回该图。


#### 函数原型

```
FlowGraph &SetOutputs(const std::vector<FlowOperator> &outputs)
```


#### 参数说明

| 参数名 | 输入/输出 | 描述 |
| --- | --- | --- |
| outputs | 输出 | 输出的节点集。 |


#### 返回值

返回设置了输出节点的FlowGraph图。


#### 异常处理

无。


#### 约束说明

无。
