Skip to content

Commit c6bf77b

Browse files
committed
fix rebase conflict
1 parent df2c199 commit c6bf77b

File tree

3 files changed

+3
-26
lines changed

3 files changed

+3
-26
lines changed

thunder/dynamo/compiler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ def __call__(self, gm: torch.fx.GraphModule, sample_args: list[torch.SymInt, tor
8787
def save_reproducer_to_folder(self, reproducer_folder: str | PathLike):
8888
"""Save the reproducer script for the GraphModule executed by Thunder to the specified `reproducer_folder`.
8989
Each saved script is named as "g[graph_id]_thunder_[module_id]", where:
90-
- `graph_id` indexes the graph generated by Dynamo, which is then passed to Thunder.
91-
- `module_id` indexes the submodule split by the :func:`thunder.dynamo.utils._splitter`.
90+
- `graph_id` indexes the graph generated by Dynamo, which is then passed to Thunder.
91+
- `module_id` indexes the submodule split by the :func:`thunder.dynamo.utils._splitter`.
9292
Both `graph_id` and `module_id` start from 1.
9393
"""
9494
if not self.subgraph_infos:

thunder/dynamo/utils.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -564,30 +564,6 @@ def checkpoint_converter(gm: torch.fx.GraphModule, sub_gm: torch.fx.GraphModule)
564564
_checkpoint_function_converter(function_module)
565565

566566

567-
from torch.nn.modules.module import _addindent
568-
import typing
569-
570-
571-
@dataclasses.dataclass
572-
class ExampleInputMetaData:
573-
"""
574-
Describes the metadata of a tensor, used to generate a random tensor with matching properties
575-
"""
576-
577-
requires_grad: bool
578-
layout: torch.layout
579-
device: str | torch.device
580-
dtype: torch.dtype
581-
shape: list[int]
582-
storage_shape: list[int]
583-
strides: list[int]
584-
min_val: int | None = None
585-
max_val: int | None = None
586-
587-
def stride(self) -> list[int]:
588-
return self.strides
589-
590-
591567
def arg_like_tensor_integer(arg: torch.Tensor | ExampleInputMetaData, f: TextIO):
592568
"""Creates a new argument like the given tensor, which must be an integer
593569
type. This is separated out because randn() does not work for integer

thunder/tests/test_dynamo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,7 @@ def find_target_module(model, target_module_name):
692692
assert isinstance(n.target, Symbol)
693693

694694

695+
@requiresCUDA
695696
def test_dynamo_reproducer_2graph(tmp_path):
696697
backend = ThunderCompiler()
697698
# Test non-contiguous input tensor

0 commit comments

Comments
 (0)