FetchDataFlowGraph (Fetching Output FlowMsgs by Index)
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Description
Fetches output data of a graph by index.
Prototype
1 | Status FetchDataFlowGraph(uint32_t graph_id, const std::vector<uint32_t> &indexes, std::vector<FlowMsgPtr> &outputs, int32_t timeout) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
graph_id |
Input |
ID of the graph to be executed. |
indexes |
Input |
Indexes of outputs. Values must be unique and in the range [0, N – 1], where N is the number of outputs. One or more indexes can be specified. Example: {0, 2}, indicating that the first and third outputs are fetched. |
outputs |
Output |
Pointers to the output FlowMsgs of the computational graph. You do not need to allocate memory. GE allocates and initializes the memory upon completion. |
timeout |
Input |
Data fetch timeout, in milliseconds. The value -1 means no timeout limit. |
Returns
Function execution result. The following table lists the results.
Parameter |
Type |
Description |
|---|---|---|
- |
Status |
|
Constraints
None