Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion depyf/explain/patched_lazy_format_graph_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def patched_lazy_format_graph_code(name, gm, maybe_id=None, **kwargs):
use_gm = True

# use `print_readable` because it can include submodules
src = "from __future__ import annotations\nimport torch\n" + \
src = "from __future__ import annotations\nimport torch\nfrom torch import device\n" + \
gm.print_readable(print_output=False)
src = src.replace("<lambda>", "GraphModule")
try:
Expand Down