elvin-n commented on a change in pull request #8793:
URL: https://github.com/apache/tvm/pull/8793#discussion_r692231874



##########
File path: docs/dev/debugger.rst
##########
@@ -148,6 +148,22 @@ How to use Debugger?
     m.run()
     tvm_out = m.get_output(0, tvm.nd.empty(out_shape, dtype)).numpy()
 
+4. If network previously was exported to external libray using 
``lib.export_library("network.so")``
+     like shared object file/dynamic linked library, the initialization
+     of debug runtime will be slightly different
+
+::
+    lib = tvm.runtime.load_module("network.so")
+    m = graph_executor.GraphModuleDebug(lib["debug_create"]("default", dev),
+                                         [dev], lib["get_json"](), 
dump_root="/tmp/tvmdbg")

Review comment:
       Could you please share how to pass lib to the second param of 
graph_executor.create? If I pass lib been created through 
tvm.runtime.load_module directly, it does not work.




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to