Skip to content

Commit 31a15a4

Browse files
Arm backend: Add amin support for Ethos-U55 (pytorch#18367)
Amin support was enabled in Vela 5.0.0 Signed-off-by: Adrian Lundell <adrian.lundell@arm.com>
1 parent f7977a6 commit 31a15a4

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎backends/arm/operator_support/ethos_u55_support.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ class EthosU55NotSupported(OperatorSupportBase):
191191
exir_ops.edge.aten.logical_or.default,
192192
exir_ops.edge.aten.logical_xor.default,
193193
exir_ops.edge.aten.logical_not.default,
194-
exir_ops.edge.aten.amin.default, # REDUCE_MIN
195194
exir_ops.edge.aten.conv3d.default, # CONV3D
196195
exir_ops.edge.aten.conv3d.padding, # CONV3D (deprecated alias)
197196
exir_ops.edge.aten.eq.Tensor,

‎backends/arm/test/ops/test_amin.py‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import torch
1212
from executorch.backends.arm.test import common
1313
from executorch.backends.arm.test.tester.test_pipeline import (
14+
EthosU55PipelineINT,
1415
EthosU85PipelineINT,
1516
OpNotSupportedPipeline,
1617
TosaPipelineFP,
@@ -144,14 +145,14 @@ def test_amin_tosa_INT(test_data: Amin.input_t):
144145
pipeline.run()
145146

146147

147-
def test_amin_u55_INT_not_delegated():
148-
data, dim, keep_dims = Amin.test_data["rank_4_all_dim"]()
149-
pipeline = OpNotSupportedPipeline[Amin.input_t](
148+
@common.parametrize("test_data", Amin.test_data)
149+
@common.XfailIfNoCorstone300
150+
def test_amin_u55_INT(test_data: Amin.input_t):
151+
data, dim, keep_dims = test_data()
152+
pipeline = EthosU55PipelineINT[Amin.input_t](
150153
Amin(dim, keep_dims),
151154
data,
152-
{"executorch_exir_dialects_edge__ops_aten_amin_default": 1},
153-
quantize=True,
154-
u55_subset=True,
155+
amin_aten_op,
155156
)
156157
pipeline.run()
157158

0 commit comments

Comments
 (0)