FilesLast commitLast update
21 days ago
21 days ago
21 days ago
21 days ago
21 days ago
21 days ago
12 days ago
README

Case

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

  • Operator function: selects a subgraph branch for execution based on the value of branch_index, passes the input tensors to the selected subgraph, and returns its output tensors.

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
branch_index Input Index for selecting the subgraph branch, which is an INT32 scalar. INT32 ND
input Input (dynamic) Input tensors passed to the selected subgraph. Dynamic inputs are supported. All types ND
branches Subgraph (dynamic) List of subgraph branches. Each subgraph receives input and returns a group of tensors. - -
output Output (dynamic) Output tensors returned by the selected subgraph. Dynamic outputs are supported. All types ND

Constraint Description

  • branch_index must be an INT32 scalar (rank 0).
  • The output types of the subgraphs in branches must be consistent.

Invocation Description

Invocation Method Invocation Sample Description
Graph-mode invocation test_geir_case Invokes the Case operator by building a graph through the operator IR.