Hello,
I have two questions ## Question #1 I am interested in knowing if it is possible to generate a C/C++ source file from a generated TIR description? The TIR is generated by creating a schedule using the TE primitives. More specifically, I want to do something similar to the first part of [Intrinsics and Math Function Tutorial](https://tvm.apache.org/docs/tutorials/language/intrin_math.html), but outputting C/C++ source code. ``` n = te.var("n") A = te.placeholder((n,), name='A') B = te.compute(A.shape, lambda i: tvm.tir.call_pure_extern("float32", "__expf", A[i]), name="B") #Assume somewhere in my code this intrinsic is defined s = te.create_schedule(B.op) #No need for splitting and binding to threads in my case f = tvm.build(s, [A, B], "c", name="myexp") #target="c" print(f.imported_modules[0].get_source()) #Currently this fails, since f.imported_modules is empty ``` ## Question #2 Searching the forum for my previous question, I found this https://discuss.tvm.ai/t/c-target-for-relay/6696/3. What is the difference between `relay.build(...)` and `tvm.build(...)`? Thanks --- [Visit Topic](https://discuss.tvm.ai/t/tir-to-c-c-source/7064/1) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/ca80e02e8ce17382a4b58433b185a4c2e6955be9de6f965bdabfbf1dd1b009ec).