[Apache TVM Discuss] [Development] Duplication of the driver between C++ and Python

2021-04-14 Thread Manupa Karunaratne via Apache TVM Discuss
Yes, this part had been a pain point in figuring out which part of the compilation pipeline is being run. Regarding, the *lower*, I think C++ version is not run (maybe not anywhere in the tvm compilation -- correct me if I am wrong) at the minute because there is a check for the registered p

[Apache TVM Discuss] [Development] Duplication of the driver between C++ and Python

2021-04-14 Thread Matt Barrett via Apache TVM Discuss
I've been looking into the TVM lower/build pipeline recently and have encountered an unusual duplication around the 'driver'. In particular, we have two files `src/driver/driver_api.cc` and `python/tvm/driver/build_module.py` which both seem to independently define almost identical functionali