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

Function test_bind_allow_override

tests/python/arith/test_arith_simplify.py:145–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143
144
145def test_bind_allow_override():
146 ana = tvm.arith.Analyzer()
147 x = tirx.Var("x", "int64")
148
149 ana.bind(x, tvm.ir.Range(0, 10))
150 ana.bind(x, tvm.ir.Range(0, 5), allow_override=True)
151 assert ana.can_prove(x < 5)
152
153 with pytest.raises(RuntimeError, match="Trying to update var 'x' with a different const bound"):
154 ana.bind(x, tvm.ir.Range(0, 3))
155
156
157def test_simplify_floor_mod_with_linear_offset():

Callers

nothing calls this directly

Calls 2

bindMethod · 0.95
can_proveMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…