I know that you can get LLVM code with:
graph,lib,params = nnvm.compiler.build(sym,target,shape_dict,params=params)
lib.get_source()
But this code does not have a main function, so I can’t compile it for a specific backend with llc.
Is there a way that I can get it to put in a main function automatically?