MCPcopy
hub / github.com/apache/tvm / tuple

Function tuple

python/tvm/relax/script/builder/ir.py:714–728  ·  view source on GitHub ↗

Create a tuple expression. Parameters ---------- *fields : Expr The fields of the tuple. Returns ------- res : Expr The result tuple.

(*fields: Expr)

Source from the content-addressed store, hash-verified

712
713
714def tuple(*fields: Expr) -> Expr:
715 """Create a tuple expression.
716 Parameters
717 ----------
718 *fields : Expr
719 The fields of the tuple.
720 Returns
721 -------
722 res : Expr
723 The result tuple.
724 """
725 if len(fields) == 0:
726 fields = py_tuple()
727
728 return relax.Tuple(fields) # type: ignore[attr-defined] # pylint: disable=no-member
729
730
731############################### R.shape ################################

Callers 15

_wrapperFunction · 0.85
_registerFunction · 0.85
__add__Method · 0.85
_convert_te_arg_helperFunction · 0.85
_convert_tupleMethod · 0.85
_convert_reshapeMethod · 0.85
_convert_permute_dimsMethod · 0.85
_convert_tileMethod · 0.85
to_torch_tensorFunction · 0.85
_captureFunction · 0.85
_interpolateMethod · 0.85

Calls

no outgoing calls

Tested by 15

_to_concrete_shapeFunction · 0.68
_run_nms_e2eFunction · 0.68
test_keep_paramsFunction · 0.68
_to_concrete_shapeFunction · 0.68
test_keep_paramsFunction · 0.68
set_input_trialFunction · 0.68
runMethod · 0.68
_to_concrete_shapeFunction · 0.68
rewriterFunction · 0.68
verifyFunction · 0.68
_run_moduleFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…