Get index-th item from a tuple. Parameters ---------- tuple_value: Expr The input tuple expression. index: int The index. span: Optional[Span] Span that points to original source code
| 653 | |
| 654 | @tvm_ffi.register_object("relax.expr.TupleGetItem") |
| 655 | class TupleGetItem(ExprWithOp): |
| 656 | """Get index-th item from a tuple. |
| 657 | |
| 658 | Parameters |
| 659 | ---------- |
| 660 | tuple_value: Expr |
| 661 | The input tuple expression. |
| 662 | |
| 663 | index: int |
| 664 | The index. |
| 665 | |
| 666 | span: Optional[Span] |
| 667 | Span that points to original source code |
| 668 | """ |
| 669 | |
| 670 | tuple_value: Expr |
| 671 | index: int |
| 672 | span: Span | None |
| 673 | |
| 674 | def __init__(self, tuple_value: Expr, index: int, span: Span | None = None): |
| 675 | self.__init_handle_by_constructor__( |
| 676 | _ffi_api.TupleGetItem, |
| 677 | tuple_value, |
| 678 | index, |
| 679 | span, # type: ignore |
| 680 | ) |
| 681 | |
| 682 | |
| 683 | @tvm_ffi.register_object("relax.expr.ShapeExpr") |
no outgoing calls
no test coverage detected
searching dependent graphs…