Skip to content

Commit b183830

Browse files
authored
Replace export_for_training with export
Differential Revision: D78751416 Pull Request resolved: #12742
1 parent d1c87e4 commit b183830

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

backends/cadence/aot/compiler.py

Lines changed: 4 additions & 4 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,9 +83,9 @@ def trace(
8383
remove_decompositions(decomp_table, ops_to_keep)
8484

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

9090
if dump_graphs:
9191
logging.info("Graph before quantization:")

0 commit comments

Comments
 (0)