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

Class IntSetChecker

tests/python/arith/test_arith_intset.py:24–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23
24class IntSetChecker:
25 def __init__(self):
26 self.analyzer = tvm.arith.Analyzer()
27
28 def verify(self, data, dmap, expected):
29 res = self.analyzer.int_set(data, dmap)
30
31 def err_msg():
32 return f"\ndata={data}\ndmap={dmap}\nres={res}\nexpected={expected}"
33
34 assert self.analyzer.can_prove_equal(res.min_value, expected[0]), err_msg()
35 assert self.analyzer.can_prove_equal(res.max_value, expected[1]), err_msg()
36
37
38def test_basic():

Callers 7

test_add_subFunction · 0.85
test_mul_divFunction · 0.85
test_modFunction · 0.85
test_max_minFunction · 0.85
test_selectFunction · 0.85
test_modular_setFunction · 0.85

Calls

no outgoing calls

Tested by 7

test_add_subFunction · 0.68
test_mul_divFunction · 0.68
test_modFunction · 0.68
test_max_minFunction · 0.68
test_selectFunction · 0.68
test_modular_setFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…