Skip to content

Commit 852881b

Browse files
Update on "Don't decompose functional ops in predispatch functionalization"
[ghstack-poisoned]
1 parent 6eeb9c0 commit 852881b

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

torch/export/_trace.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,6 @@ def _export_non_strict(
375375
*,
376376
transform=lambda x: x, # TODO(zhxchen17) Revisit if this is needed later.
377377
pre_dispatch=False,
378-
decomp_table=None,
379378
):
380379
# This _reparametrize_module makes sure inputs and module.params/buffers have the same fake_mode,
381380
# otherwise aot_export_module will error out because it sees a mix of fake_modes.
@@ -386,7 +385,6 @@ def _export_non_strict(
386385
(*fake_args, *fake_kwargs.values()),
387386
trace_joint=False,
388387
pre_dispatch=pre_dispatch,
389-
decompositions=decomp_table,
390388
)
391389

392390
# NOTE: aot_export adds symint metadata for placeholders with int values;
@@ -710,7 +708,6 @@ def _aot_export_strict(gm_torch_level: torch.fx.GraphModule, args, **kwargs):
710708
fake_params_buffers,
711709
transform=_process_user_inputs,
712710
pre_dispatch=pre_dispatch,
713-
decomp_table=decomp_table,
714711
)
715712

716713
gm = ep_non_strict.gm

0 commit comments

Comments
 (0)