one call lasts for 100 ms and writes one character to a file
(filename)
| 30 | |
| 31 | @tvm.register_global_func |
| 32 | def my_debug(filename): |
| 33 | """one call lasts for 100 ms and writes one character to a file""" |
| 34 | time.sleep(0.1) |
| 35 | with open(filename, "a") as fout: |
| 36 | fout.write("c") |
| 37 | |
| 38 | X = te.compute((), lambda: tvm.tirx.call_packed("my_debug", filename)) |
| 39 | func = tvm.tirx.build(te.create_prim_func([X])) |
nothing calls this directly
no test coverage detected
searching dependent graphs…