https://github.com/AndrewZhaoLuo/TVM-Sandbox/blob/main/relay/graph_debugger_example.py Here is an example of using graph debugger. My apologies as it isn’t very complete and the tensor dumps you’ll have to manually associate.
If you use graph debugger there is also an interesting function get_node_output
which might also be promising:
Finally debug_get_output
is also a function you can call with the above example with rt_mod: https://github.com/apache/tvm/blob/main/python/tvm/contrib/debugger/debug_executor.py#L234
2 Likes