()
| 361 | |
| 362 | |
| 363 | def 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 | |
| 375 | def test_counter_syntax_match(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…