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

Function check

tests/python/tirx-base/test_tir_ops.py:34–38  ·  view source on GitHub ↗
(f, *args)

Source from the content-addressed store, hash-verified

32
33def test_const_fold():
34 def check(f, *args):
35 x = f(*[tvm.tirx.const(x, "int32") for x in args])
36 y = f(*args)
37 if not isinstance(x, tvm.tirx.IntImm) or x.value != int(y):
38 raise ValueError(f"check error: {x} vs {y} ")
39
40 tmod = tvm.tirx.truncmod
41 check(lambda x, y: x + y, 3, 4)

Callers 2

test_const_foldFunction · 0.70

Calls 1

fFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…