@@ -12,7 +12,7 @@ class TestSelectConverter(DispatchTestCase):
12
12
("select_dim_index" , 2 , 1 ),
13
13
]
14
14
)
15
- def test_select (self , dim_test , index_test ):
15
+ def test_select (self , _ , dim_test , index_test ):
16
16
class TestModule (torch .nn .Module ):
17
17
def __init__ (self , dim , index ):
18
18
super ().__init__ ()
@@ -25,10 +25,14 @@ def forward(self, input):
25
25
TestModule (dim_test , index_test ), input , expected_ops = {torch .ops .aten .select }, test_explicit_precision = True ,
26
26
)
27
27
28
- def test_select_with_dynamic_shape (self , dim_test , index_test ):
28
+ def test_select_with_dynamic_shape (self , _ , dim_test , index_test ):
29
29
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 )
32
36
33
37
input_spec = [
34
38
InputTensorSpec (
0 commit comments