We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1c87e4 commit b183830Copy full SHA for b183830
backends/cadence/aot/compiler.py
@@ -59,7 +59,7 @@ def trace(
59
dump_graphs: bool = False,
60
) -> ExportedProgram:
61
"""
62
- Trace the model with export_for_training and return an ExportedProgram.
+ Trace the model with export and return an ExportedProgram.
63
64
65
# Make the model inference mode by calling model.eval()
@@ -83,9 +83,9 @@ def trace(
83
remove_decompositions(decomp_table, ops_to_keep)
84
85
# Export with dynamo
86
- program = torch.export.export_for_training(
87
- model, inputs, strict=True
88
- ).run_decompositions(decomp_table)
+ program = torch.export.export(model, inputs, strict=True).run_decompositions(
+ decomp_table
+ )
89
90
if dump_graphs:
91
logging.info("Graph before quantization:")
0 commit comments