(f, *args)
| 32 | |
| 33 | def test_const_fold(): |
| 34 | def check(f, *args): |
| 35 | x = f(*[tvm.tirx.const(x, "int32") for x in args]) |
| 36 | y = f(*args) |
| 37 | if not isinstance(x, tvm.tirx.IntImm) or x.value != int(y): |
| 38 | raise ValueError(f"check error: {x} vs {y} ") |
| 39 | |
| 40 | tmod = tvm.tirx.truncmod |
| 41 | check(lambda x, y: x + y, 3, 4) |
no test coverage detected
searching dependent graphs…