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

Function test_counter_syntax_match

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

Source from the content-addressed store, hash-verified

373
374
375def test_counter_syntax_match():
376 with PatternContext() as ctx:
377 n0 = is_call_dps_packed("extern_matmul")
378 n1 = is_call_dps_packed("extern_impossible")
379 n0 >> n1
380 dfb = main_fn.body.blocks[0]
381 assert not ctx.match_dfb(dfb)
382
383 with PatternContext() as ctx:
384 n0 = is_call_dps_packed("extern_matmul")
385 n1 = is_call_dps_packed("extern_impossible")
386 n0 ^ n1
387 dfb = main_fn.body.blocks[0]
388 assert not ctx.match_dfb(dfb)
389
390
391@tvm.script.ir_module

Callers

nothing calls this directly

Calls 3

PatternContextClass · 0.85
is_call_dps_packedFunction · 0.85
match_dfbMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…