How to output the C code after schedule the gemm?

Since LLVM of the chip is not well done at present, I want to output the C code after GEMM scheduling and then compile it through GCC, but I don’t know what statement to use in Python to generate C code

I am using this code to save the C source to file, with TARGET=“c”

with tvm.transform.PassContext(opt_level=3):
    graph1, lib1, params1 = relay.build(mod, target=TARGET, params=dict_params)
    src1 = lib1.get_source()
    with open("source_conv2d.cpp", "wt") as f:
        f.write(src1)

I’m sorry to disturb you, the code generated by your reply seems not to be compiled by gcc.