Skip to content

Commit ca06c5a

Browse files
committed
Revert "Add lowering of TOSA.MIN and TOSA.MAX"
This reverts commit 70f95d0. Signed-off-by: Digant Desai <[email protected]>
1 parent 6399a0a commit ca06c5a

File tree

10 files changed

+0
-501
lines changed

10 files changed

+0
-501
lines changed

backends/arm/_passes/arm_pass_manager.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@
2929
DecomposeSoftmaxesPass,
3030
)
3131
from executorch.backends.arm._passes.decompose_var_pass import DecomposeVarPass
32-
from executorch.backends.arm._passes.fold_qdq_with_annotated_qparams_pass import (
33-
FoldAndAnnotateQParamsPass,
34-
)
3532
from executorch.backends.arm._passes.keep_dims_false_to_squeeze_pass import (
3633
KeepDimsFalseToSqueezePass,
3734
)
@@ -53,7 +50,6 @@
5350
from executorch.backends.xnnpack._passes.remove_getitem_op import RemoveGetItemPass
5451
from executorch.exir import ExportedProgram
5552
from executorch.exir.backend.compile_spec_schema import CompileSpec
56-
from executorch.exir.dialects._ops import ops as exir_ops
5753
from executorch.exir.pass_manager import PassManager
5854

5955

@@ -84,14 +80,6 @@ def transform_to_backend_pipeline(
8480
self.add_pass(Conv1dUnsqueezePass(exported_program))
8581
self.add_pass(DecomposeSoftmaxesPass())
8682
self.add_pass(DecomposeLinearPass())
87-
self.add_pass(
88-
FoldAndAnnotateQParamsPass(
89-
[
90-
exir_ops.edge.aten.minimum.default,
91-
exir_ops.edge.aten.maximum.default,
92-
]
93-
)
94-
)
9583
for spec in compile_spec:
9684
if spec.key == "permute_memory_format":
9785
memory_format = spec.value.decode()

backends/arm/operator_support/tosa_supported_operators.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ def is_node_supported(self, submodules, node: fx.Node) -> bool:
9494
exir_ops.edge.aten.sigmoid.default,
9595
exir_ops.edge.aten.mean.dim,
9696
exir_ops.edge.aten.mm.default,
97-
exir_ops.edge.aten.minimum.default,
98-
exir_ops.edge.aten.maximum.default,
9997
exir_ops.edge.aten.repeat.default,
10098
exir_ops.edge.aten.reciprocal.default,
10199
exir_ops.edge.aten.relu.default,

backends/arm/operators/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919
op_get_item,
2020
op_hardtanh,
2121
op_log,
22-
op_max,
2322
op_max_pool2d,
24-
op_min,
2523
op_mm,
2624
op_mul,
2725
op_permute,

backends/arm/operators/op_max.py

Lines changed: 0 additions & 81 deletions
This file was deleted.

backends/arm/operators/op_min.py

Lines changed: 0 additions & 81 deletions
This file was deleted.

backends/arm/quantizer/arm_quantizer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ def _supported_symmetric_quantized_operators() -> Dict[str, List[OperatorPattern
7777
],
7878
"mul": [[torch.mul]],
7979
"sub": [[torch.sub]],
80-
"min_max": [[torch.min], [torch.max]],
8180
}
8281
return copy.deepcopy(supported_operators)
8382

@@ -268,7 +267,6 @@ class ArmQuantizer(Quantizer):
268267
"add",
269268
"sub",
270269
"mul",
271-
"min_max",
272270
"mm",
273271
"one_to_one",
274272
"generic",

backends/arm/quantizer/quantization_annotation/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ def decorator(annotator: AnnotatorType):
5555
generic_annotator,
5656
linear_annotator,
5757
max_pool2d_annotator,
58-
min_max_annotator,
5958
mm_annotator,
6059
mul_annotator,
6160
one_to_one_annotator,

backends/arm/quantizer/quantization_annotation/min_max_annotator.py

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)