Skip to content

Commit a506e18

Browse files
ethansfngfacebook-github-bot
authored andcommitted
Replace export_for_training with export
Summary: torch.export.export_for_training will be deprecated Differential Revision: D78751416
1 parent 56b0074 commit a506e18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backends/cadence/aot/compiler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def trace(
5959
dump_graphs: bool = False,
6060
) -> ExportedProgram:
6161
"""
62-
Trace the model with export_for_training and return an ExportedProgram.
62+
Trace the model with export and return an ExportedProgram.
6363
"""
6464

6565
# Make the model inference mode by calling model.eval()
@@ -83,7 +83,7 @@ def trace(
8383
remove_decompositions(decomp_table, ops_to_keep)
8484

8585
# Export with dynamo
86-
program = torch.export.export_for_training(
86+
program = torch.export.export(
8787
model, inputs, strict=True
8888
).run_decompositions(decomp_table)
8989

0 commit comments

Comments
 (0)