Skip to content

Commit

Permalink
[fx] Fix GraphModule.print_readable() (#88730)
Browse files Browse the repository at this point in the history
Summary: `__nested_code()` seems removed.

Test Plan: CI

Differential Revision: D41149662

Pull Request resolved: #88730
Approved by: https://github.com/SherlockNoMad
  • Loading branch information
zhxchen17 authored and pytorchmergebot committed Nov 9, 2022
1 parent 6dd0818 commit b7aa22d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch/fx/graph_module.py
Expand Up @@ -725,7 +725,7 @@ def print_readable(self, print_output=True):
submodule_code_list = [""]
for submodule in self.children():
if isinstance(submodule, GraphModule):
submodule_code_list.append(submodule.__nested_code())
submodule_code_list.append(submodule.print_readable(print_output=False))
submodule_code = "\n".join(submodule_code_list)
submodule_code = _addindent(submodule_code, 4)

Expand Down

0 comments on commit b7aa22d

Please sign in to comment.