Hi all,
I am interested in a possible C++ integration of TVM as a jit compiler. Can we write a compute/schedule from C++? Something on the line of:
int main()
{
auto A= tvm::te::placeholder({m});
auto B = tvm::te::compute({m}, [=](int i){ return X[i]+1;})
auto s = tvm::create_schedule({compute.op});
auto axis = B.axis();
s[B].vectorize(axis[0]);
auto func = tvm::lower(s, {A, B});
module = tvm::build(func);
// Set inputs, outputs
module.run()
// Get outputs
}
I “think” it should be possible, but did not find much documentation/tutorials around. Also, what about tuning? Can I write my schedule in C++, expose it in python and let the tuner tune it?
Thanks,
Giuseppe