Skip to content

Commit 8db57a5

Browse files
ethansfngfacebook-github-bot
authored andcommitted
Replace export_for_training with export
Summary: export_for_training will be deprecated soon, swap with export Differential Revision: D79097629
1 parent da8af21 commit 8db57a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backends/cadence/aot/compiler_funcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ 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(
38+
program = torch.export.export(
3939
model, inputs, strict=strict
4040
).run_decompositions(decomp_table)
4141

0 commit comments

Comments
 (0)