File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,8 @@ class EthosU55NotSupported(OperatorSupportBase):
149
149
exir_ops .edge .aten .ne .Scalar ,
150
150
exir_ops .edge .aten .flip .default , # REVERSE
151
151
exir_ops .edge .aten .grid_sampler_2d , # GATHER
152
+ exir_ops .edge .aten .index .Tensor , # GATHER
153
+ exir_ops .edge .aten .index_select .default , # GATHER
152
154
exir_ops .edge .aten .scatter .src ,
153
155
exir_ops .edge .aten .scatter .value ,
154
156
exir_ops .edge .aten .select_scatter .default ,
Original file line number Diff line number Diff line change 12
12
13
13
from executorch .backends .arm .test import common
14
14
from executorch .backends .arm .test .tester .test_pipeline import (
15
+ OpNotSupportedPipeline ,
15
16
TosaPipelineFP ,
16
17
TosaPipelineINT ,
17
18
VgfPipeline ,
@@ -120,6 +121,20 @@ def test_index_select_tosa_INT_rand(test_data: input_params):
120
121
pipeline .run ()
121
122
122
123
124
+ @pytest .mark .parametrize ("test_data" , list (test_data .values ())[- 1 :])
125
+ def test_index_select_u55_INT_not_delegated (test_data : input_params ):
126
+ op , test_input = test_data
127
+
128
+ pipeline = OpNotSupportedPipeline [input_params ](
129
+ op ,
130
+ test_input ,
131
+ {op .exir_op : 1 },
132
+ quantize = True ,
133
+ u55_subset = True ,
134
+ )
135
+ pipeline .run ()
136
+
137
+
123
138
@pytest .mark .parametrize ("test_data" , list (test_data .values ()))
124
139
@common .SkipIfNoModelConverter
125
140
def test_index_select_vgf_FP (test_data : input_params ):
Original file line number Diff line number Diff line change 10
10
import torch
11
11
from executorch .backends .arm .test import common
12
12
from executorch .backends .arm .test .tester .test_pipeline import (
13
+ OpNotSupportedPipeline ,
13
14
TosaPipelineFP ,
14
15
TosaPipelineINT ,
15
16
)
@@ -460,3 +461,18 @@ def test_index_tensor_tosa_INT_none(test_data: input_params):
460
461
IndexTensorTestCommon .exir_op ,
461
462
).run ()
462
463
)
464
+
465
+
466
+ @common .parametrize ("test_data" , IndexTensor .test_data )
467
+ @common .XfailIfNoCorstone300
468
+ def test_index_tensor_u55_INT_not_delegated (test_data : input_params ):
469
+ """Ethos-U55 backend BI pipeline test for index.Tensor"""
470
+ test_input = test_data
471
+ with torch .no_grad ():
472
+ OpNotSupportedPipeline [input_params ](
473
+ IndexTensor (),
474
+ test_input ,
475
+ {IndexTensorTestCommon .exir_op : 1 },
476
+ quantize = True ,
477
+ u55_subset = True ,
478
+ ).run ()
You can’t perform that action at this time.
0 commit comments