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

Exit

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

Exits the current frame to its parent frame. The Exit operator works with the Enter operator to create loops in a graph. It passes the input tensor x to the parent frame to make the tensor available there. 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 passed to the parent frame. float16, float32, float64, int8, int16, int32, int64, uint8, uint16, uint32, uint64, bool ND
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

  • The data type and shape of the output tensor y must be consistent with those of the input tensor x.

Invocation Description

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

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