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

Function test_select

tests/python/arith/test_arith_intset.py:134–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132
133
134def test_select():
135 ck = IntSetChecker()
136 x, y = tvm.tirx.Var("x", "int32"), tvm.tirx.Var("y", "int32")
137 ck.verify(tvm.tirx.Select(x > 0, x - 1, x + 1), {x: tvm.arith.IntervalSet(0, 10)}, (-1, 11))
138
139
140def check_region_bound(expect_region, var_dom, mode, predicate=None):

Callers

nothing calls this directly

Calls 2

verifyMethod · 0.95
IntSetCheckerClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…