FilesLast commitLast update
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
24 days ago
11 days ago
README

RefData

English | 简体中文

Product Support Status

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

Function Description

Provides input data that can be overwritten by references for other operators. The RefData 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. Different from the Data operator, RefData can be overwritten by ref-type operators and serves as a variable.

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 two data nodes and one ref_data node: the indexes of the first two data nodes are set to 0 and 1, and the index of ref_data should be set 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 RefData 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_ref_data Invokes the RefData operator by building a graph through the operator IR