---
title: FeedDataFlowGraph（feed所有输入）
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/dataflowdevg/dfrefc_23_0062.html
sourcePath: /source/zh/canncommercial/900/others/dataflowdevg/dfrefc_23_0062.html
indexId: 838bd1d7d747c66ebefa9b8e6207ec8eff477a876817cfe06a7f24891b8efaa669
---
# FeedDataFlowGraph（feed所有输入）

#### 产品支持情况

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


#### 函数功能

将数据输入到Graph图。


#### 函数原型

```
Status FeedDataFlowGraph(uint32_t graph_id, const std::vector<Tensor> &inputs, const DataFlowInfo &info, int32_t timeout)
```


#### 参数说明

| 参数名 | 输入/输出 | 描述 |
| --- | --- | --- |
| graph\_id | 输入 | 要执行图对应的ID。 |
| inputs | 输入 | 计算图输入Tensor，为Host上分配的内存空间。 |
| info | 输入 | 输入数据流标志（flow flag）。具体请参考DataFlowInfo数据类型。 |
| timeout | 输入 | 数据输入超时时间，单位：ms，取值为\-1时表示从不超时。 |


#### 返回值

| 参数名 | 类型 | 描述 |
| --- | --- | --- |
| \- | Status | SUCCESS：数据输入成功。 FAILED：数据输入失败。 acl接口的错误码请参考“aclError(https://www.hiascend.comdocument/detail/zh/canncommercial/900/API/runtimeapi/aclcppdevg\_03\_1345.html)”。 其他错误码请参考UDF错误码。 |


#### 约束说明

无
