I’d like to know tvm compiling flow and I wrote some test code to see every step tvm does.
I read the Example Compilation Flow
( Design and Architecture — tvm 0.8.dev0 documentation) which show that
- tvm load frontend module to relay IR
- tvm lower the relay IR to tir IR
so I wrote test code like:
mod, params = relay.frontend.from_onnx(onnx_model)
lower_mod = tvm.lower(mod)
But I find that there is no difference between mod and lower_mod with print(mod.astext(show_meta_data=False))
why? Does it mean frontend.from_xxx has done what tvm.lower does?