()
| 123 | |
| 124 | |
| 125 | def test_max_min(): |
| 126 | ck = IntSetChecker() |
| 127 | x, y = tvm.tirx.Var("x", "int32"), tvm.tirx.Var("y", "int32") |
| 128 | ck.verify(tvm.tirx.max(x, x + 1), {x: tvm.arith.IntervalSet(0, 10)}, (1, 11)) |
| 129 | ck.verify(tvm.tirx.min(x - 1, x + 1), {x: tvm.arith.IntervalSet(0, 10)}, (-1, 9)) |
| 130 | ck.verify(tvm.tirx.min(x, y), {}, (tvm.tirx.min(x, y), tvm.tirx.min(x, y))) |
| 131 | ck.verify(tvm.tirx.max(x, y), {}, (tvm.tirx.max(x, y), tvm.tirx.max(x, y))) |
| 132 | |
| 133 | |
| 134 | def test_select(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…