You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2019/11/05 21:33:06 UTC
[GitHub] [incubator-tvm] tqchen commented on issue #4258: [WIP][TVM] Bring
Your Own Codegen to TVM
tqchen commented on issue #4258: [WIP][TVM] Bring Your Own Codegen to TVM
URL: https://github.com/apache/incubator-tvm/pull/4258#issuecomment-550030642
Thanks for the PR.
It would be great if you can propose a separate PR for the ```runtime/contrib``` support. Given that the runtime itself can be quite interesting and we want to have a clear guide for it.
The main problem I see in the current PR is that that the serialization is not implemented.
You can run things through relay.execute because the runtime is created on the fly. However, you cannot save the module, because SaveBinary and load method is not implemented for DNNLModule.
Moreover, if we are only generating c code, I think a better way would be to reuse DSOModule, e.g. to generate wrapper functions in C that directly adopts the PackedFunc calling convention in the DSOModule, then the code can be collectively compiled with the original source, and still exposes these functions. Have a specific shell code Module(DNNL, and GCC) adds additional duplications that we do not need.
A better example I have in mind could be something like a subgraph sequence in a serialized format(which can be used in save-binary), and then the PackedFunc interprets the graph and run things. This will likely applies to settings like TensorRT, and TF, although you can always generate a sequence of c code into low level libs. The subgraph or special device related blob serialization would be more relevant to accelerators
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services