(name: str)
| 436 | return gv0 |
| 437 | |
| 438 | def _expected(name: str): |
| 439 | n, m = tirx.Var("n", "int64"), tirx.Var("m", "int64") |
| 440 | x = relax.Var("x", R.Tensor([m, n], "float32")) |
| 441 | bb = relax.BlockBuilder() |
| 442 | with bb.function(name, (x,)): |
| 443 | out = bb.emit( |
| 444 | relax.call_dps_packed("extern_func", x, R.Tensor((m, n), dtype="float32")) |
| 445 | ) |
| 446 | bb.emit_func_output(out) |
| 447 | return bb.get()[name] |
| 448 | |
| 449 | _check(foo, _expected("foo")) |
| 450 | _check(bar, _expected("bar")) |
no test coverage detected
searching dependent graphs…