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

Function my_debug

tests/python/runtime/test_runtime_measure.py:32–36  ·  view source on GitHub ↗

one call lasts for 100 ms and writes one character to a file

(filename)

Source from the content-addressed store, hash-verified

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]))

Callers

nothing calls this directly

Calls 1

writeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…