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

Class ExternFuncPattern

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

A external function pattern. Parameters ---------- global_symbol: str The name of the function. Optional, if not provided, the pattern will match any ExternFuncNode.

Source from the content-addressed store, hash-verified

358
359@register_df_node
360class ExternFuncPattern(DFPattern):
361 """A external function pattern.
362
363 Parameters
364 ----------
365 global_symbol: str
366 The name of the function. Optional, if not provided,
367 the pattern will match any ExternFuncNode.
368 """
369
370 def __init__(self, global_symbol: str = ""):
371 self.__init_handle_by_constructor__(ffi.ExternFuncPattern, global_symbol) # type: ignore
372
373
374@register_df_node

Callers 4

is_call_dps_packedFunction · 0.85
is_call_packedFunction · 0.85
test_extern_fn_patternFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_extern_fn_patternFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…