FilesLast commitLast update
18 days ago
18 days ago
18 days ago
18 days ago
18 days ago
18 days ago
9 days ago
README

Enter

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

Creates or finds a child frame and makes the input tensor x available in the child frame. The Enter operator works with the Exit operator to create loops in a graph. Frames are identified by the unique frame_name attribute. When is_constant is true, the output tensor y is constant within the child frame; otherwise, it may be changed within the child frame. The output tensor y has the same shape and data type as the input tensor x.

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
x Input Input tensor, which needs to be available in the child frame. float16, float32, float64, int8, int16, int32, int64, uint8, uint16, uint32, uint64, bool ND
frame_name Attribute Name of the child frame. Frames are identified by this unique name. String, required -
is_constant Attribute If true, the output is constant within the child frame; otherwise, it may be changed within the child frame. Bool, required -
y Output Tensor that has the same shape and data type as the input tensor x. float16, float32, float64, int8, int16, int32, int64, uint8, uint16, uint32, uint64, bool ND

Constraint Description

  • frame_name and is_constant are required attributes.
  • The data type and shape of the output tensor y must be consistent with those of the input tensor x.

Invocation Description

The Enter operator is a control flow operator. It usually works with the Exit operator to create loops in a graph and is not invoked separately.

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