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

Class FunctionPattern

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

A pattern matching a function node in Relax. Parameters ---------- params: List[tvm.relax.dpl.DFPattern] The parameters to the Function or None to match any parameters. body: tvm.relax.dpl.DFPattern The body fo the Function

Source from the content-addressed store, hash-verified

426
427@register_df_node
428class FunctionPattern(DFPattern):
429 """A pattern matching a function node in Relax.
430
431 Parameters
432 ----------
433 params: List[tvm.relax.dpl.DFPattern]
434 The parameters to the Function or None to match any parameters.
435
436 body: tvm.relax.dpl.DFPattern
437 The body fo the Function
438
439 """
440
441 def __init__(
442 self,
443 params: list["DFPattern"],
444 body: "DFPattern",
445 ):
446 self.__init_handle_by_constructor__(ffi.FunctionPattern, params, body) # type: ignore
447
448
449@register_df_node

Callers 2

test_function_patternFunction · 0.85
test_match_call_attrFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_function_patternFunction · 0.68
test_match_call_attrFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…