Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions backends/cadence/aot/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def trace(
dump_graphs: bool = False,
) -> ExportedProgram:
"""
Trace the model with export_for_training and return an ExportedProgram.
Trace the model with export and return an ExportedProgram.
"""

# Make the model inference mode by calling model.eval()
Expand All @@ -83,9 +83,9 @@ def trace(
remove_decompositions(decomp_table, ops_to_keep)

# Export with dynamo
program = torch.export.export_for_training(
model, inputs, strict=True
).run_decompositions(decomp_table)
program = torch.export.export(model, inputs, strict=True).run_decompositions(
decomp_table
)

if dump_graphs:
logging.info("Graph before quantization:")
Expand Down
Loading