MCPcopy Create free account
hub / github.com/apache/tvm / is_call_dps_packed

Function is_call_dps_packed

python/tvm/relax/dpl/pattern.py:918–937  ·  view source on GitHub ↗

Syntax sugar for creating a CallPattern for call_dps_packed Parameters ---------- func_name : str Name of the CPS function to call. args : Union[List[DFPattern], Tuple[DFPattern]], optional Arguments in expected call_packed, by default None meaning arbitrary (number

(
    func_name: str,
    args: list | tuple | TuplePattern = None,
)

Source from the content-addressed store, hash-verified

916
917
918def is_call_dps_packed(
919 func_name: str,
920 args: list | tuple | TuplePattern = None,
921) -> CallPattern:
922 """Syntax sugar for creating a CallPattern for call_dps_packed
923
924 Parameters
925 ----------
926 func_name : str
927 Name of the CPS function to call.
928 args : Union[List[DFPattern], Tuple[DFPattern]], optional
929 Arguments in expected call_packed, by default None meaning arbitrary (number of) arguments
930
931 Returns
932 -------
933 CallPattern
934 The resulting CallPattern
935 """
936 func_pattern = ExternFuncPattern(func_name)
937 return _is_call_dps_packed(func_pattern, args)
938
939
940def is_call_packed(

Callers 12

test_diamondFunction · 0.85
test_diamond_counter_oubFunction · 0.85
test_nested_contextFunction · 0.85
test_two_cbrFunction · 0.85
test_two_matmulFunction · 0.85
test_concat_mm_splitFunction · 0.85
test_self_attentionFunction · 0.85
test_nested_diamondFunction · 0.85
test_incremental_solvingFunction · 0.85

Calls 2

ExternFuncPatternClass · 0.85
_is_call_dps_packedFunction · 0.85

Tested by 12

test_diamondFunction · 0.68
test_diamond_counter_oubFunction · 0.68
test_nested_contextFunction · 0.68
test_two_cbrFunction · 0.68
test_two_matmulFunction · 0.68
test_concat_mm_splitFunction · 0.68
test_self_attentionFunction · 0.68
test_nested_diamondFunction · 0.68
test_incremental_solvingFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…