Runnig a model with tvm debugger

Hi there,

I have also been facing this issue.

I have found that the version described in the documentation still causes issues, and I have not been able to get it working.

I got the alternative approach using GraphModuleDebug suggested earlier working, however the API has changed since this comment was posted, so I had to modify it a bit.

I have a simple standalone script that has both approaches, switch between them by passing the flag --mode, either tutorial or forum (or normal - with no debugger runtime).

You can find the code here.

The working version of GraphModuleDebug is thus:

m = GraphModuleDebug(
    lib["debug_create"]("default", dev),
    [dev],
    lib.graph_json,
    dump_root="/tmp/tvmdbg",
)

Is this considered the canonical way of running the debugger now? Or is there a way to get debug_executor working?

In both cases, does this require a docs update?