Skip to content

Commit 4f18c0f

Browse files
committed
select aten test
1 parent c8811cd commit 4f18c0f

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

py/torch_tensorrt/fx/test/converters/aten_op/test_select_aten.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,19 @@ class TestSelectConverter(DispatchTestCase):
1313
("select_dim_index", 2, 1),
1414
]
1515
)
16-
def test_select(self, _, dim_test, index_test):
16+
def test_select(self, _, dim, index):
1717
class TestModule(torch.nn.Module):
18-
def __init__(self, dim, index):
18+
def __init__(self):
1919
super().__init__()
20-
self.dim = dim
21-
self.index = index
2220

2321
def forward(self, input):
24-
return torch.select(input, self.dim, self.index)
22+
return torch.select(input, dim, index)
2523

2624
input = [torch.randn(1, 3, 32)]
2725
self.run_test(
28-
TestModule(dim_test, index_test),
26+
TestModule(),
2927
input,
30-
expected_ops={torch.ops.aten.select},
28+
expected_ops={torch.ops.aten.select.int},
3129
test_explicit_precision=True,
3230
)
3331

0 commit comments

Comments
 (0)