8000 Revert "Make torch_geometric models compatible with export (#123403)"… · TharinduRusira/pytorch@dba29d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit dba29d2

Browse files
chunyuan-wTharinduRusira
authored andcommitted
Revert "Make torch_geometric models compatible with export (pytorch#123403)" (pytorch#128377)
This reverts commit d78991a. This PR reverts pytorch#123403 to fix the performance regression as discussed in pytorch#127513 (comment). Pull Request r 8000 esolved: pytorch#128377 Approved by: https://github.com/jgong5, https://github.com/angelayi, https://github.com/desertfire
1 parent 9c5ade6 commit dba29d2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

benchmarks/dynamo/common.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,12 +1184,14 @@ def load(cls, model, example_inputs, device):
11841184
else:
11851185
_register_dataclass_output_as_pytree(example_outputs)
11861186

1187-
gm = torch.export._trace._export(
1187+
# TODO(angelayi): change this to predispatch
1188+
# https://github.com/pytorch/pytorch/issues/127513 needs to be fixed before changing
1189+
# to predispatch to avoid performance regressions
1190+
gm = torch.export._trace._export_to_torch_ir(
11881191
model,
11891192
example_args,
11901193
example_kwargs,
1191-
pre_dispatch=True,
1192-
).module()
1194+
)
11931195
with torch.no_grad():
11941196
so_path = torch._inductor.aot_compile(
11951197
gm, example_args, example_kwargs

0 commit comments

Comments
 (0)
0