How to find out layout transformation time?

Hi. I am working with AutoTVM. On running the tune_relay_x86 script in tutorials/autotvm, I get the console output showing the mean inference time with the optimal schedule. How can I determine what proportion of this inference time that was spent on data layout transformations?

Can I determine it from just the log files (a.k.a without making changes to the code)? If changes in code are needed, please provide hints on how to proceed with this task. Thanks.

You can use a built-in profiler to measure per-op times. See an example in The report would include the time it took for all layout transforms.