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

Function test_function

tests/python/relax/test_tvmscript_printer_relax.py:38–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36
37
38def test_function():
39 @R.function
40 def func(a: R.Tensor((10, 10))) -> R.Tensor((10, 10)): # type: ignore
41 R.func_attr({"some_attr": 1})
42 return a
43
44 _assert_print(
45 func,
46 """
47# from tvm.script import relax as R
48
49@R.function
50def func(a: R.Tensor((10, 10))) -> R.Tensor((10, 10)):
51 R.func_attr({"some_attr": 1})
52 return a""",
53 )
54
55
56def test_lone_private_function():

Callers

nothing calls this directly

Calls 1

_assert_printFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…