FeedDataFlowGraph(feed所有输入)
函数功能
将数据输入到Graph图。
函数原型
1
|
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 |
|
约束说明
无
父主题: Graph运行接口