@@ -12,7 +12,7 @@ class TestSelectConverter(DispatchTestCase):
1212 ("select_dim_index" , 2 , 1 ),
1313 ]
1414 )
15- def test_select (self , dim_test , index_test ):
15+ def test_select (self , _ , dim_test , index_test ):
1616 class TestModule (torch .nn .Module ):
1717 def __init__ (self , dim , index ):
1818 super ().__init__ ()
@@ -25,10 +25,14 @@ def forward(self, input):
2525 TestModule (dim_test , index_test ), input , expected_ops = {torch .ops .aten .select }, test_explicit_precision = True ,
2626 )
2727
28- def test_select_with_dynamic_shape (self , dim_test , index_test ):
28+ def test_select_with_dynamic_shape (self , _ , dim_test , index_test ):
2929 class TestModule (torch .nn .Module ):
30- def forward (self , input , dim , index ):
31- return torch .select (input , dim , index )
30+ def __init__ (self , dim , index ):
31+ super ().__init__ ()
32+ self .dim = dim
33+ self .index = index
34+ def forward (self , input ):
35+ return torch .select (input , self .dim , self .index )
3236
3337 input_spec = [
3438 InputTensorSpec (
0 commit comments