Skip to content

Commit 4027c1b

Browse files
mcr229facebook-github-bot
authored andcommitted
Remove Duplicate Dequant Node Pass (#4169)
Summary: Pull Request resolved: #4169 The original need for the DuplicateDequantNode pass was to correctly partition quantized ops. If the output of quantized ops were used twice, then a single dequant node would be reused by multiple ops. This made it impossible to partition for quantized ops using pattern based matching. However, now that we have moved to source-based partitioner, we no longer need the dequant node pass before partitioning Reviewed By: digantdesai, kirklandsign Differential Revision: D46919620 fbshipit-source-id: 61071c6477817e0ab46df8aa02f896af0cb5043c
1 parent 2d9c6b5 commit 4027c1b

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

backends/xnnpack/utils/TARGETS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ python_library(
99
"//caffe2:torch",
1010
"//executorch/exir:lib",
1111
"//executorch/exir:pass_manager",
12-
"//executorch/exir/backend/canonical_partitioners:canonical_partitioner_lib",
1312
"//executorch/exir/dialects:lib",
1413
"//pytorch/ao:torchao", # @manual
1514
],

backends/xnnpack/utils/configs.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88

99
import executorch.exir as exir
1010
from executorch.exir import CaptureConfig
11-
from executorch.exir.backend.canonical_partitioners.duplicate_dequant_node_pass import (
12-
DuplicateDequantNodePass,
13-
)
1411
from executorch.exir.pass_manager import PassType
1512

1613

@@ -20,8 +17,7 @@ def get_xnnpack_edge_compile_config() -> exir.EdgeCompileConfig:
2017

2118

2219
def get_transform_passes(additional_passes=None) -> List[PassType]:
23-
additional_passes = additional_passes if additional_passes else []
24-
passes = additional_passes + [DuplicateDequantNodePass()]
20+
passes = additional_passes if additional_passes else []
2521
return passes
2622

2723

0 commit comments

Comments
 (0)