()
| 54 | |
| 55 | |
| 56 | def test_lone_private_function(): |
| 57 | @R.function(private=True) |
| 58 | def func(a: R.Tensor((10, 10))) -> R.Tensor((10, 10)): # type: ignore |
| 59 | R.func_attr({"some_attr": 1}) |
| 60 | return a |
| 61 | |
| 62 | # name prints as main because without a global symbol, the printer cannot assume a name |
| 63 | _assert_print( |
| 64 | func, |
| 65 | """ |
| 66 | # from tvm.script import relax as R |
| 67 | |
| 68 | @R.function(private=True) |
| 69 | def main(a: R.Tensor((10, 10))) -> R.Tensor((10, 10)): |
| 70 | R.func_attr({"some_attr": 1}) |
| 71 | return a""", |
| 72 | ) |
| 73 | |
| 74 | |
| 75 | def test_extern_func(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…