MCPcopy Index your code
hub / github.com/apache/tvm / TupleGetItem

Class TupleGetItem

python/tvm/relax/expr.py:655–680  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

653
654@tvm_ffi.register_object("relax.expr.TupleGetItem")
655class 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")

Callers 10

__getitem__Method · 0.85
get_functionMethod · 0.85
get_functionMethod · 0.85
get_functionMethod · 0.85
_einsumFunction · 0.85
_concatFunction · 0.85
_stackFunction · 0.85
_index_tensorFunction · 0.85
_meshgridFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…