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

Function test_add_sub

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

Source from the content-addressed store, hash-verified

63
64
65def test_add_sub():
66 ck = IntSetChecker()
67 x, y = tvm.tirx.Var("x", "int32"), tvm.tirx.Var("y", "int32")
68 ck.verify(x + y, {x: tvm.arith.IntervalSet(0, 10)}, (y, 10 + y))
69 ck.verify(x + y, {x: tvm.arith.IntervalSet(0, 10), y: tvm.arith.IntervalSet(1, 11)}, (1, 21))
70 ck.verify(x - y, {x: tvm.arith.IntervalSet(0, 10), y: tvm.arith.IntervalSet(1, 11)}, (-11, 9))
71
72
73def test_mul_div():

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…