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

Function test_varg_default_wildcard

tests/python/relax/test_dataflow_pattern.py:321–329  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

319
320
321def test_varg_default_wildcard():
322 expr = simple_call_packed.body.blocks[0].bindings[0].value
323 yes_pattern_explicit = ExternFuncPattern("test.vm.mul")(wildcard(), wildcard())
324 yes_pattern_implicit = ExternFuncPattern("test.vm.mul")(varg_default_wildcard=True)
325 no_pattern = ExternFuncPattern("test.vm.mul")(wildcard())
326
327 assert yes_pattern_explicit.match(expr)
328 assert yes_pattern_implicit.match(expr)
329 assert not no_pattern.match(expr)
330
331
332def test_simple_call_packed():

Callers

nothing calls this directly

Calls 3

ExternFuncPatternClass · 0.85
wildcardFunction · 0.85
matchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…