Skip to content

Commit 464a938

Browse files
authored
Replace export_for_training with export
Differential Revision: D79097629 Pull Request resolved: pytorch#12963
1 parent fb03b6f commit 464a938

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backends/cadence/aot/compiler_funcs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ def trace(
3535
decomp_table = torch.export.default_decompositions()
3636
# pyre-fixme[6]: For 1st argument expected `Dict[typing.Callable[..., typing.Any
3737
remove_decompositions(decomp_table, ops_to_keep)
38-
program = torch.export.export_for_training(
39-
model, inputs, strict=strict
40-
).run_decompositions(decomp_table)
38+
program = torch.export.export(model, inputs, strict=strict).run_decompositions(
39+
decomp_table
40+
)
4141

4242
return program
4343

0 commit comments

Comments
 (0)