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

Function test_simple_oub

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

Source from the content-addressed store, hash-verified

361
362
363def test_simple_oub():
364 with PatternContext() as ctx:
365 n0 = is_call_tir("tir_matmul")
366 n1 = is_call_tir("tir_relu")
367 n0 >> n1
368 dfb = main_fn.body.blocks[0]
369 matched = ctx.match_dfb(dfb)
370 assert matched
371 assert matched[n0] == dfb.bindings[0].var
372 assert matched[n1] == dfb.bindings[1].var
373
374
375def test_counter_syntax_match():

Callers

nothing calls this directly

Calls 3

PatternContextClass · 0.85
is_call_tirFunction · 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…