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

Function test_diamond_counter_oub

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

Source from the content-addressed store, hash-verified

436
437
438def test_diamond_counter_oub():
439 with PatternContext() as ctx:
440 n0 = is_call_dps_packed("extern_matmul")
441 n1 = is_call_dps_packed("extern_relu")
442 n2 = is_call_dps_packed("extern_sigmoid")
443 n3 = is_call_dps_packed("extern_add")
444
445 n0 >> n1
446 n0 >> n2
447 n1 >> n3
448 n2 >> n3
449
450 dfb = Diamond["main"].body.blocks[0]
451 assert not ctx.match_dfb(dfb)
452
453
454@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…