elvin-n commented on a change in pull request #8793:
URL: https://github.com/apache/tvm/pull/8793#discussion_r692270634
##########
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:
Hm, interesting. I tried the same code and it did not work, but when I
tried your code snippet, everything started to work well. Will update the doc.
I might not be required, but still there is a difference how to get the json
between just compiled lib and loaded from the external dynamic library
-`lib["get_json"]()`
--
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]