It looks that it will be convenient for debugging if we can dump out the IR after each opt.
This can be done by either insert relay.transform.PrintIR()
after each pass or add a dump_ir=True
config into the build_config. But it looks that the later one is more convenient and can be inserted from python.
@jroesch needs this for memory debugging. Should we add it back?