FetchDataFlowGraph (Fetching All Output Data)
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Description
Fetches output data of a graph.
Prototype
1 | Status FetchDataFlowGraph(uint32_t graph_id, std::vector<Tensor> &outputs, DataFlowInfo &info, int32_t timeout) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
graph_id |
Input |
ID of the graph to be executed. |
outputs |
Output |
Output tensors of the computational graph. You do not need to allocate the memory manually. After the execution is complete, GE allocates and initializes the memory. |
info |
Output |
Output data flow flag. For details, see DataFlowInfo Data Types. |
timeout |
Input |
Data fetch timeout, in milliseconds. The value -1 means no timeout limit. |
Returns
Function execution result.
Parameter |
Type |
Description |
|---|---|---|
- |
Status |
|
Constraints
None
Parent topic: Graph Running APIs