How to print CachedFunc and Schedule of an Operator in C++ inside TVM backend code?

Hi All,

I know the python interface to TVM provides a “lower” function. However, (for a reason) I need to print the schedule and cachedfunction inside backed of TVM code which is C++.

Specifcally, I’d like to schedule and cached function inside https://github.com/microsoft/onnxruntime-tvm/blob/master/src/relay/backend/compile_engine.cc

In the compile_engine.cc, there is a schedule and cfunc (whci is CachedFunc) in line 159. I’d like to print them for a certain operators.

Any suggestions?