()
| 36 | |
| 37 | |
| 38 | def 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 |
| 50 | def func(a: R.Tensor((10, 10))) -> R.Tensor((10, 10)): |
| 51 | R.func_attr({"some_attr": 1}) |
| 52 | return a""", |
| 53 | ) |
| 54 | |
| 55 | |
| 56 | def test_lone_private_function(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…