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 fb03b6f commit 464a938Copy full SHA for 464a938
backends/cadence/aot/compiler_funcs.py
@@ -35,9 +35,9 @@ def trace(
35
decomp_table = torch.export.default_decompositions()
36
# pyre-fixme[6]: For 1st argument expected `Dict[typing.Callable[..., typing.Any
37
remove_decompositions(decomp_table, ops_to_keep)
38
- program = torch.export.export_for_training(
39
- model, inputs, strict=strict
40
- ).run_decompositions(decomp_table)
+ program = torch.export.export(model, inputs, strict=strict).run_decompositions(
+ decomp_table
+ )
41
42
return program
43
0 commit comments