FetchDataFlowGraph (Obtaining All Output Data)

Applicability

Product

Supported

Atlas A3 training products / Atlas A3 inference products

Atlas A2 training products / Atlas A2 inference products

Atlas 200I/500 A2 inference products

x

Atlas inference products

x

Atlas training products

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)

Command-Line Options

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 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.

Parameter

Type

Description

-

Status

  • SUCCESS: Data is successfully fetched.
  • FAILED: Failed to fetch data.
  • For details about error codes of ACL APIs, see ""aclError"".
  • For details about other error codes, see UDF Error Codes.

Constraints

None