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 inputs
}
```
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
---
[Visit
Topic](https://discuss.tvm.apache.org/t/can-we-use-tvm-as-jit-compiler/8124/1)
to respond.
You are receiving this because you enabled mailing list mode.
To unsubscribe from these emails, [click
here](https://discuss.tvm.apache.org/email/unsubscribe/1bc333ae135ee876f2da00390123de729cb407c44fb1087c444a70f31943f912).