Skip to content
Closed
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
3 changes: 1 addition & 2 deletions backends/cadence/aot/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
)
from executorch.backends.transforms.remove_clone_ops import RemoveCloneOpsTransform
from executorch.exir import EdgeCompileConfig, EdgeProgramManager, to_edge
from torch._export import capture_pre_autograd_graph
from torch.ao.quantization.pt2e.export_utils import model_is_exported
from torch.ao.quantization.quantize_pt2e import convert_pt2e, prepare_pt2e

Expand Down Expand Up @@ -58,7 +57,7 @@ def convert_pt2(
"""

# Export with dynamo
model_gm = capture_pre_autograd_graph(model, inputs)
model_gm = torch.export.export_for_training(model, inputs).module()

if model_gm_has_SDPA(model_gm): # pyre-fixme[6]
# Decompose SDPA
Expand Down
Loading