comaniac commented on issue #4280: [TVM][RUNTIME] A minimum example to generate 
external library wrappers for DSOModule
URL: https://github.com/apache/incubator-tvm/pull/4280#issuecomment-553630880
 
 
   > It would still be great if we can add the other example that I mentioned, 
where we implement a customized runtime that have its own serialization 
mechanism(perhaps a graph like graph runtime) and the PackedFunc executes the 
corresponding functions by interpreting the serialized structure(e.g. graph). 
This kind of example will be closer to what people want, especially they want 
to serialize states that are other than sequence of API calls. @zhiics
   
   I've added another example that mimics the graph-runtime-like programming 
model. This example assumes the external backend has its own runtime that 
accepts a graph representation such as JSON. Accordingly, the codegen would 
serialize the subgraph to a string like this [code 
snippet](https://github.com/apache/incubator-tvm/pull/4280/files#diff-aab1542f9a9fec245df5ae78088f43ffR128-R131)
 (I use a very simple representation instead of a complete JSON format in this 
example for simplification). Note that the codegen can either embed the graph 
to kernel code, or put the graph to a separate file and read it back in runtime.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to