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

Function test_max_min

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

Source from the content-addressed store, hash-verified

123
124
125def 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
134def test_select():

Callers

nothing calls this directly

Calls 4

verifyMethod · 0.95
IntSetCheckerClass · 0.85
maxMethod · 0.80
minMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…