FetchDataFlowGraph (Fetching All Output FlowMsgs)

Applicability

Product

Supported

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

x

Atlas inference product

x

Atlas training product

x

Function Description

Fetches output data of a graph.

Prototype

1
Status FetchDataFlowGraph(uint32_t graph_id, std::vector<FlowMsgPtr> &outputs, int32_t timeout)

Parameters

Parameter

Input/Output

Description

graph_id

Input

ID of the graph to be executed.

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

  • SUCCESS: successful data fetch.
  • FAILED: failed data fetch.
  • For details about error codes of ACL APIs, see Runtime APIs > Data Types and Operation APIs > aclError.
  • For details about other error codes, see UDF Error Codes.

Constraints

None