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):
149149 exir_ops .edge .aten .ne .Scalar ,
150150 exir_ops .edge .aten .flip .default , # REVERSE
151151 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
152154 exir_ops .edge .aten .scatter .src ,
153155 exir_ops .edge .aten .scatter .value ,
154156 exir_ops .edge .aten .select_scatter .default ,
Original file line number Diff line number Diff line change 1212
1313from executorch .backends .arm .test import common
1414from executorch .backends .arm .test .tester .test_pipeline import (
15+ OpNotSupportedPipeline ,
1516 TosaPipelineFP ,
1617 TosaPipelineINT ,
1718 VgfPipeline ,
@@ -120,6 +121,20 @@ def test_index_select_tosa_INT_rand(test_data: input_params):
120121 pipeline .run ()
121122
122123
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+
123138@pytest .mark .parametrize ("test_data" , list (test_data .values ()))
124139@common .SkipIfNoModelConverter
125140def test_index_select_vgf_FP (test_data : input_params ):
Original file line number Diff line number Diff line change 1010import torch
1111from executorch .backends .arm .test import common
1212from executorch .backends .arm .test .tester .test_pipeline import (
13+ OpNotSupportedPipeline ,
1314 TosaPipelineFP ,
1415 TosaPipelineINT ,
1516)
@@ -460,3 +461,18 @@ def test_index_tensor_tosa_INT_none(test_data: input_params):
460461 IndexTensorTestCommon .exir_op ,
461462 ).run ()
462463 )
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