Skip to content
Draft
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions examples/models/parakeet/export_parakeet_tdt.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,9 +513,9 @@ def _create_metal_partitioners(programs):
# print(f"Running decompositions for {key}")
# print(ep.graph_module)
if key != "preprocessor":
updated_programs[key] = ep.run_decompositions(
{torch.ops.aten.linear.default: _linear_bias_decomposition}
)
decomp_table = torch.export.default_decompositions()
decomp_table[torch.ops.aten.linear.default] = _linear_bias_decomposition
updated_programs[key] = ep.run_decompositions(decomp_table)
else:
updated_programs[key] = ep

Expand Down
6 changes: 3 additions & 3 deletions examples/models/voxtral_realtime/export_voxtral_rt.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,9 @@ def lower_to_executorch(programs, metadata, backend="xnnpack"):
# Run decompositions for Metal backend
updated_programs = {}
for key, ep in programs.items():
updated_programs[key] = ep.run_decompositions(
{torch.ops.aten.linear.default: _linear_bias_decomposition}
)
decomp_table = torch.export.default_decompositions()
decomp_table[torch.ops.aten.linear.default] = _linear_bias_decomposition
updated_programs[key] = ep.run_decompositions(decomp_table)
programs = updated_programs

partitioner = {}
Expand Down
Loading