Skip to content

Commit 02b8f58

Browse files
committed
Revert "Arm backend: Match fp32->int32 cast between pytorch and TOSA's CAST (pytorch#12243)"
This reverts commit 1315388.
1 parent defa089 commit 02b8f58

File tree

4 files changed

+0
-163
lines changed

4 files changed

+0
-163
lines changed

backends/arm/_passes/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
from .decompose_sqrt_pass import DecomposeSqrtPass # noqa
5252
from .decompose_sum_pass import DecomposeSumPass # noqa
5353
from .decompose_var_pass import DecomposeVarPass # noqa
54-
from .decorate_fp32_to_int32_casting_pass import DecorateFp32toInt32CastingPass # noqa
5554
from .fold_qdq_with_annotated_qparams_pass import ( # noqa
5655
FoldAndAnnotateQParamsPass,
5756
QuantizeOperatorArguments,

backends/arm/_passes/arm_pass_manager.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
DecomposeSqrtPass,
5757
DecomposeSumPass,
5858
DecomposeVarPass,
59-
DecorateFp32toInt32CastingPass,
6059
FoldAndAnnotateQParamsPass,
6160
FuseBatchnorm2DPass,
6261
FuseConstantArgsPass,
@@ -201,9 +200,6 @@ def _tosa_080_MI_pipeline(self, exported_program: ExportedProgram) -> GraphModul
201200
self.add_pass(MatchArgRanksPass(exported_program))
202201
self.add_pass(DecomposeAdaptiveAvgPool2dPass())
203202
self.add_pass(DecomposeAvgPool2d())
204-
self.add_pass(
205-
DecorateFp32toInt32CastingPass()
206-
) # Require that no new fp32->int32 is introduced after this pass
207203
self.add_pass(ComputeConstantOpsAOT(exported_program))
208204

209205
self.add_pass(DecomposeGroupedConv())

backends/arm/_passes/decorate_fp32_to_int32_casting_pass.py

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

backends/arm/test/passes/test_decorate_fp32_to_int32_casting_pass.py

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

0 commit comments

Comments
 (0)