(exec0, dev, inputs, expected, entry_func_name="main")
| 65 | |
| 66 | |
| 67 | def check_roundtrip(exec0, dev, inputs, expected, entry_func_name="main"): |
| 68 | with utils.tempdir() as temp: |
| 69 | exec0.mod.export_library(temp.relpath("exec.so")) |
| 70 | exec1 = tvm.runtime.load_module(temp.relpath("exec.so")) |
| 71 | assert exec0.stats() == exec1["stats"]() |
| 72 | assert exec0.as_text() == exec1["as_text"]() |
| 73 | |
| 74 | check_executable(exec0, dev, inputs, expected, entry_func_name) |
| 75 | check_executable(exec1, dev, inputs, expected, entry_func_name) |
| 76 | |
| 77 | |
| 78 | def gen_ground_truth(mod, target, dev, inputs): |
no test coverage detected
searching dependent graphs…