comaniac edited a comment 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-555303900 @tqchen we have moved the example JSON runtime as well as the other two examplese to `apps/ext_runtime` as suggested. Please see the following code snippet (in `test_rt.py`:520-526) for the use case of the example JSON runtime: ```python ext_lib = ext_json_rt.create_json_rt(subgraph_json, "") lib.import_module(ext_lib) lib.export_library('external.so') # load module for execution. lib = tvm.module.load('external.so') mod = tvm.contrib.graph_runtime.create(graph_json, lib, tvm.cpu(0)) ``` Please note that we need to change [get function call](https://github.com/apache/incubator-tvm/pull/4280/files#diff-5243f3909dfa484d85d3d8471f259169R399) in the graph runtime in order to search the implementation in the imported module. Please also help check if it's ok to do so. Thanks.
---------------------------------------------------------------- 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
