FetchDataFlowGraph (Fetching Output Data 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<Tensor> &outputs, DataFlowInfo &info, int32_t timeout) |
Command-Line Options
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
graph_id |
Input |
ID of the graph to be executed. |
|
indexes |
Input |
Index of the output data, which must be unique. Value range: [0, N – 1], where N indicates the number of data outputs. One or more values are supported. For example, {0,2} indicates that the first and third outputs are fetched. |
|
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 DataFlow Execution API Overview. |
|
timeout |
Input |
Timeout period for fetching data, in milliseconds. The value -1 indicates that no timeout ever occurs. |
Returns
Function execution result. The following table describes the result.
|
Parameter |
Type |
Description |
|---|---|---|
|
- |
Status |
|
Constraints
None