[Apache TVM Discuss] [Development/pre-RFC] Export TIR to json

2022-03-25 Thread Sebastian Boblest Etas via Apache TVM Discuss
1. You are right, we actually tried to save the runtime.Module. We actually also added the TIR export to the runtime.Module because the generated source code is also put to it. We will try the different options you proposed as soon as we can find the time. 2. In the meantime we have written an

[Apache TVM Discuss] [Development/pre-RFC] Export TIR to json

2022-03-16 Thread Sebastian Boblest Etas via Apache TVM Discuss
Hi, thanks for the reference to this function. I was not aware of it. However I tried it on a Module(c) and got this: `{ "root": 1, "nodes": [ { "type_key": "" }, { "type_key": "runtime.Module" } ], "b64ndarrays": [], "attrs": {"tvm_version": "0.9.dev0"

[Apache TVM Discuss] [Development/pre-RFC] Export TIR to json

2022-03-16 Thread Sebastian Boblest Etas via Apache TVM Discuss
We propose to implement an API to TVM that allows users to export the TIR representation of the generated kernels as json. **Motivation** Json is a standard file format and can easily be processed in python, for example. A json interface allows to analyze the generated kernels target agnos