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 40358fa commit a9ea8b4Copy full SHA for a9ea8b4
backends/cadence/aot/compiler.py
@@ -30,7 +30,6 @@
30
)
31
from executorch.backends.transforms.remove_clone_ops import RemoveCloneOpsTransform
32
from executorch.exir import EdgeCompileConfig, EdgeProgramManager, to_edge
33
-from torch._export import capture_pre_autograd_graph
34
from torch.ao.quantization.pt2e.export_utils import model_is_exported
35
from torch.ao.quantization.quantize_pt2e import convert_pt2e, prepare_pt2e
36
@@ -58,7 +57,7 @@ def convert_pt2(
58
57
"""
59
60
# Export with dynamo
61
- model_gm = capture_pre_autograd_graph(model, inputs)
+ model_gm = torch.export.export_for_training(model, inputs).module()
62
63
if model_gm_has_SDPA(model_gm): # pyre-fixme[6]
64
# Decompose SDPA
0 commit comments