Skip to content

Commit

Permalink
adds str information
Browse files Browse the repository at this point in the history
  • Loading branch information
kiya00 committed Feb 3, 2025
1 parent a03f073 commit cfe3ded
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions thunder/dynamo/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,9 @@ def __init__(self, graphs: list[torch.fx.GraphModule], graph_names: list[str] =
graph_names = [f"graph{idx}" for idx in range(len(graphs))]
self.fx_graph_reports: list[FXGraphReport] = [FXGraphReport(g, name) for name, g in zip(graph_names, graphs)]

def __str__(self):
return f"<FXReport with {len(self.fx_graph_reports)} FXGraphReports accessible via .fx_graph_reports>"


def fx_report(fn: Callable, *args, compile_options: dict = None, **kwargs) -> FXReport:
"""
Expand Down
2 changes: 1 addition & 1 deletion thunder/tests/test_dynamo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,7 @@ def check(file_name, cmd):

cmd = [sys.executable]
if use_benchmark:
cmd = cmd + ["-m", "pytest", "--benchmark-warmup-iterations=5"]
cmd = cmd + ["-m", "pytest"]
py_files = list(tmp_path.glob("*.py"))
assert len(py_files) == 4

Expand Down

0 comments on commit cfe3ded

Please sign in to comment.