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

Function test_simple_call_tir_edge

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

Source from the content-addressed store, hash-verified

349
350
351def test_simple_call_tir_edge():
352 with PatternContext() as ctx:
353 n0 = is_call_tir("tir_matmul")
354 n1 = is_call_tir("tir_relu")
355 n0.used_by(n1)
356 dfb = main_fn.body.blocks[0]
357 matched = ctx.match_dfb(dfb)
358 assert matched
359 assert matched[n0] == dfb.bindings[0].var
360 assert matched[n1] == dfb.bindings[1].var
361
362
363def test_simple_oub():

Callers

nothing calls this directly

Calls 4

PatternContextClass · 0.85
is_call_tirFunction · 0.85
match_dfbMethod · 0.80
used_byMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…