Here’s my question. I want to see the computation graph or those fused operators’ TIR after ansor tuning or metaschedule tuning. Do we have any ways to achieve this goal?
mod, params, (input_name, _, _) = relay_workload.get_network(model_name, input_shape) mod.show() def convert_layout(mod):
seq = tvm.transform.Sequential(
[relay.transform.ConvertLayout({"nn.conv2d": ["NHWC", "OHWI"]})]
)
with tvm.transform.PassContext(opt_level=1):
mod = seq(mod)
return mod
mod = convert_layout(mod)
mod.show()
Besides, there is another question. I write this code, and find ‘mod.show()’ gives me the same output. Then how can I get the computation graph after Pass optimization?