FilesLast commitLast update
22 days ago
22 days ago
22 days ago
22 days ago
22 days ago
22 days ago
12 days ago
README

RefExit

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 RefExit operator works with the Enter operator to create loops in a graph, and passes the input tensor x, which can be overwritten by references, to the parent frame to make it available. Unlike the Exit operator, RefExit works on reference tensors that can be overwritten by ref-type operators. 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. A tensor that can be overwritten by references and 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 the same as those of the input tensor x.

Invocation Description

The RefExit 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_ref_exit Invokes the RefExit operator by building a graph through the operator IR.