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

PlaceHolder

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

Inserts a placeholder for a tensor that will always be fed. The PlaceHolder operator receives the input tensor x, and the shape and data type of the output y are consistent with those of the input x. InferShape copies the input shape to the output, and InferDataType copies the input dtype to the output.

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
x Input Input tensor. TensorType::ALL() ND
peerIndex Attribute Index of the corresponding connected "end" node. Int, with the default value 0 -
parentId Attribute String identifier used to check whether the node comes from a saved parent node. String, with the default value "" -
parentOpType Attribute Operator type of the original node. String, with the default value "" -
anchorIndex Attribute Index used to check whether the node comes from a saved anchor. Int, with the default value 0 -
y Output Created placeholder tensor, whose shape and data type are consistent with those of the input x. TensorType::ALL() ND

Constraint Description

  • PlaceHolder is an internal node of the graph engine. It is automatically inserted at subgraph boundaries by GE engine partitioning (EnginePartitioner). It must be used together with the paired End node and the peerIndex attribute, and cannot be compiled and executed independently in user-built graphs.

Invocation Description

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

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