Skip to content
Open
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 backends/aoti/aoti_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,9 @@ def preprocess(
custom_pass(device_edge_program.graph_module)

# ``run_decompositions`` retraces the complete ExportedProgram even
# when none of the table's operators occur in the graph. The in-place
# passes above preserve graph inputs and outputs, so the existing graph
# signature remains valid when the decomposition table cannot apply.
# when none of the table's operators occur in the graph. Nothing else
# rebuilds the graph signature, so the in-place passes above must keep
# it valid when the decomposition table cannot apply.
if contains_any_call_fn_target_op(
device_edge_program.graph_module, decomposition_table
):
Expand Down
1 change: 1 addition & 0 deletions backends/cuda/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ fbcode_target(
"passes/move_cond_predicate_to_cpu.py",
"passes/lower_offgraph_kv.py",
"passes/remove_assert_async.py",
"passes/replace_complex_with_real.py",
"passes/replace_fused_sdpa.py",
"passes/replace_int64_floordiv.py",
"passes/replace_masked_copy_with_where.py",
Expand Down
4 changes: 4 additions & 0 deletions backends/cuda/cuda_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
MoveCondPredicateToCpuPass,
)
from executorch.backends.cuda.passes.remove_assert_async import RemoveAssertAsyncPass
from executorch.backends.cuda.passes.replace_complex_with_real import (
ReplaceComplexWithRealPass,
)
from executorch.backends.cuda.passes.replace_fused_sdpa import (
ReplaceFusedSdpaWithSdpaPass,
)
Expand Down Expand Up @@ -1266,6 +1269,7 @@ def get_custom_passes(cls, compile_specs: List[CompileSpec]) -> List[typing.Any]
triton_kernel_mode = mode
passes = [
RemoveAssertAsyncPass(),
ReplaceComplexWithRealPass(),
MoveCondPredicateToCpuPass(),
ReplaceInt64FloorDivWithFloatPass(),
ReplaceFusedSdpaWithSdpaPass(),
Expand Down
Loading
Loading