FilesLast commitLast update
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
9 days ago
README

Data

English | 简体中文

Product Support Status

Product Supported
Ascend 950PR/Ascend 950DT √
Atlas A3 training products/Atlas A3 inference products √
Atlas A2 training products/Atlas A2 inference products √
Atlas 200I/500 A2 inference products √
Atlas inference products √
Atlas training products √

Function Description

Provides input data for other operators. The Data operator serves as a data input node in a graph. It directly passes the input tensor x to the output tensor y, and identifies the sequence number of the data node in the network through the index attribute.

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
x Input Input tensor. TensorType::ALL() ND
index Attribute Index of the input tensor. The data type is int32 or int64. Assume that a network has three data nodes: one should be set to 0, another to 1, and the third to 2. Int, with the default value 0 -
y Output Tensor that has the same shape and data type as the input tensor x TensorType::ALL() ND

Constraint Description

None

Invocation Description

The Data operator is a basic operator of the graph engine. It is usually used as a data input node in a graph and is not invoked separately.

Invocation Method Invocation Sample Description
Graph-mode invocation test_geir_data Invokes the Data operator by building a graph through the operator IR