FeedRawData

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

Inputs raw data to a graph.

Prototype

1
2
3
4
struct RawData {
  const void *addr;
  size_t len;
};
1
Status FeedRawData(uint32_t graph_id, const std::vector<RawData> &raw_data_list, const uint32_t index,  const DataFlowInfo &info, int32_t timeout);

Parameters

Parameter

Input/Output

Description

graph_id

Input

ID of the graph to be executed.

raw_data_list

Input

Array composed of input data pointers and their lengths. One or more entries can be provided. If multiple entries are provided, the framework automatically merges the corresponding data segments into a single block and passes it to the DataFlow graph.

index

Input

Index of the input of the corresponding DataFlow graph.

info

Input

Input data flow flag. For details, see DataFlowInfo Data Types.

timeout

Input

Data input timeout, in milliseconds. The value -1 means no timeout limit.

Returns

Parameter

Type

Description

-

Status

  • SUCCESS: successful data input.
  • FAILED: failed data input.
  • 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