C++ APIs of Ansor auto-scheduler


I was trying to convert a neural network into tensor expressions, and optimize the performance using Ansor (in C++).

However, I was not able to find any document or test case to use Ansor in C++ (there is a simple cpp testcase for Ansor ComputeDAG, but it does not describe a complete auto-scheduling flow in C++). Can anyone give me a pointer? How should I call Ansor in C++?

There are no existing examples avaiable. But you can try to build one by translating existing python code to c++ code. The c++ entry point is file https://github.com/apache/tvm/blob/main/src/auto_scheduler/auto_schedule.cc