Skip to content

Commit 638827a

Browse files
cherry pick 25.09 skip test to main (#3810)
1 parent b5dce13 commit 638827a

7 files changed

Lines changed: 32 additions & 6 deletions

File tree

noxfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,8 @@ def run_l1_dynamo_tests(session):
473473
if not USE_HOST_DEPS:
474474
install_deps(session)
475475
install_torch_trt(session)
476-
run_dynamo_model_tests(session)
476+
# SKIP hub.py download model failure on CI
477+
# run_dynamo_model_tests(session)
477478
run_dynamo_partitioning_tests(session)
478479
run_dynamo_runtime_tests(session)
479480
cleanup(session)

tests/core/conversion/converters/test_cumsum.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ TEST(Converters, ATenCumsumConvertsCorrectly) {
2727
}
2828

2929
TEST(Converters, ATenCumsumConvertsCorrectlyWithDynamicInput) {
30+
GTEST_SKIP();
3031
const auto graph = R"IR(
3132
graph(%0 : Tensor):
3233
%1 : int = prim::Constant[value=1]()

tests/py/dynamo/conversion/test_arange_aten.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
1+
import unittest
2+
13
import torch
24
import torch.nn as nn
35
import torch_tensorrt
46
from parameterized import parameterized
57
from torch.testing._internal.common_utils import run_tests
8+
from torch_tensorrt.dynamo.utils import is_tegra_platform, is_thor
69

710
from .harness import DispatchTestCase
811

912

13+
@unittest.skipIf(
14+
is_thor() or is_tegra_platform(),
15+
"Skipped on Thor and Tegra platforms",
16+
)
1017
class TestArangeConverter(DispatchTestCase):
1118
@parameterized.expand(
1219
[

tests/py/dynamo/conversion/test_cumsum_aten.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
1+
import unittest
2+
13
import torch
24
import torch.nn as nn
35
import torch_tensorrt
46
from parameterized import parameterized
57
from torch.testing._internal.common_utils import run_tests
8+
from torch_tensorrt.dynamo.utils import is_tegra_platform, is_thor
69

710
from .harness import DispatchTestCase
811

912

13+
@unittest.skipIf(
14+
is_thor() or is_tegra_platform(),
15+
"Skipped on Thor and Tegra platforms",
16+
)
1017
class TestCumsumConverter(DispatchTestCase):
1118
@parameterized.expand(
1219
[

tests/py/dynamo/conversion/test_nonzero_aten.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
from parameterized import parameterized
77
from torch.testing._internal.common_utils import run_tests
88
from torch_tensorrt import Input
9+
from torch_tensorrt.dynamo.utils import is_tegra_platform, is_thor
910

1011
from .harness import DispatchTestCase
1112

1213

1314
@unittest.skipIf(
14-
torch_tensorrt.ENABLED_FEATURES.tensorrt_rtx,
15+
torch_tensorrt.ENABLED_FEATURES.tensorrt_rtx or is_thor() or is_tegra_platform(),
1516
"nonzero is not supported for tensorrt_rtx",
1617
)
1718
class TestNonZeroConverter(DispatchTestCase):

tests/py/dynamo/runtime/test_004_weight_streaming.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import torch_tensorrt as torchtrt
77
from parameterized import parameterized
88
from torch.testing._internal.common_utils import TestCase, run_tests
9-
from torch_tensorrt.dynamo.utils import prepare_inputs
9+
from torch_tensorrt.dynamo.utils import is_tegra_platform, prepare_inputs
1010

1111
INPUT_SIZE = (64, 100)
1212

@@ -31,6 +31,10 @@ def forward(self, x):
3131
return out
3232

3333

34+
@unittest.skipIf(
35+
is_tegra_platform(),
36+
"Skipped on Tegra platforms",
37+
)
3438
class TestWeightStreamingPython(TestCase):
3539
@parameterized.expand(
3640
[

tests/py/dynamo/runtime/test_output_allocator.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import torch_tensorrt
66
from parameterized import parameterized
77
from torch.testing._internal.common_utils import TestCase, run_tests
8+
from torch_tensorrt.dynamo.utils import is_tegra_platform, is_thor
89

910
from ..testing_utilities import DECIMALS_OF_AGREEMENT
1011

@@ -43,6 +44,10 @@ def forward(self, input):
4344
return out
4445

4546

47+
@unittest.skipIf(
48+
torch_tensorrt.ENABLED_FEATURES.tensorrt_rtx or is_thor() or is_tegra_platform(),
49+
"TensorRT RTX does not support nonzero which are required for this test",
50+
)
4651
class TestOutputAllocatorStaticModel(TestCase):
4752
@parameterized.expand(
4853
[
@@ -153,7 +158,7 @@ def test_combination_of_cg_and_oa(self, _, use_python_runtime):
153158

154159

155160
@unittest.skipIf(
156-
torch_tensorrt.ENABLED_FEATURES.tensorrt_rtx,
161+
torch_tensorrt.ENABLED_FEATURES.tensorrt_rtx or is_thor() or is_tegra_platform(),
157162
"TensorRT RTX does not support nonzero which are required for this test",
158163
)
159164
class TestOutputAllocatorDDSModel(TestCase):
@@ -263,7 +268,7 @@ def test_combination_of_cg_and_oa(self, _, use_python_runtime):
263268

264269

265270
@unittest.skipIf(
266-
torch_tensorrt.ENABLED_FEATURES.tensorrt_rtx,
271+
torch_tensorrt.ENABLED_FEATURES.tensorrt_rtx or is_thor() or is_tegra_platform(),
267272
"TensorRT RTX does not support nonzero which are required for this test",
268273
)
269274
class TestOutputAllocatorDDSOpWithReductionOpModel(TestCase):
@@ -377,7 +382,7 @@ def test_combination_of_cg_and_oa(self, _, use_python_runtime):
377382

378383

379384
@unittest.skipIf(
380-
torch_tensorrt.ENABLED_FEATURES.tensorrt_rtx,
385+
torch_tensorrt.ENABLED_FEATURES.tensorrt_rtx or is_thor() or is_tegra_platform(),
381386
"TensorRT RTX does not support nonzero which are required for this test",
382387
)
383388
class TestOutputAllocatorDDSModelWithGraphBreak(TestCase):

0 commit comments

Comments
 (0)