MCPcopy Index your code
hub / github.com/apache/tvm / test_divide_by_zero

Function test_divide_by_zero

tests/python/tirx-base/test_tir_nodes.py:256–268  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

254
255
256def test_divide_by_zero():
257 for test in [
258 lambda lhs, rhs: tvm.tirx.floormod(lhs, rhs),
259 lambda lhs, rhs: tvm.tirx.floordiv(lhs, rhs),
260 lambda lhs, rhs: tvm.tirx.truncmod(lhs, rhs),
261 lambda lhs, rhs: tvm.tirx.truncdiv(lhs, rhs),
262 lambda lhs, rhs: tvm.tirx.div(lhs, rhs),
263 ]:
264 try:
265 test(tvm.tirx.const(5, "int32"), tvm.tirx.const(0, "int32"))
266 assert False
267 except RuntimeError:
268 pass
269
270
271def test_infinity():

Callers

nothing calls this directly

Calls 1

testFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…