Skip to content

Commit

Permalink
live debugging
Browse files Browse the repository at this point in the history
Signed-off-by: youkaichao <youkaichao@gmail.com>
  • Loading branch information
youkaichao committed Dec 6, 2024
1 parent 810a8fb commit d1c71d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions depyf/explain/patched_lazy_format_graph_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def patched_lazy_format_graph_code(name, gm, maybe_id=None, **kwargs):
src = "from __future__ import annotations\nimport torch\n" + \
gm.print_readable(print_output=False)
src = src.replace("<lambda>", "GraphModule")
print(src)
try:
compile(src, "noname", "exec")
except Exception as e:
Expand Down

0 comments on commit d1c71d6

Please sign in to comment.