How to use function in tvm/src/printer

Can anyone show some examples on how to use function in tvm/src/printer. I dont know how to print information on terminal

@zxs185996 Could you be a bit more specific?

When I debug TVM using vscode, “-exec p some expr” can only show objectref information. It is too abstract than PrintIR function, but I dont want to write too many LOG(INFO). Now I create one global TextPrinter variable, when I want to see one variable, just "-exec call TextPrinter.PrintFinal(expr).str() ". It’ works well

1 Like