|
5 | 5 | import torch_tensorrt |
6 | 6 | from parameterized import parameterized |
7 | 7 | from torch.testing._internal.common_utils import TestCase, run_tests |
| 8 | +from torch_tensorrt.dynamo.utils import is_tegra_platform, is_thor |
8 | 9 |
|
9 | 10 | from ..testing_utilities import DECIMALS_OF_AGREEMENT |
10 | 11 |
|
@@ -43,6 +44,10 @@ def forward(self, input): |
43 | 44 | return out |
44 | 45 |
|
45 | 46 |
|
| 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 | +) |
46 | 51 | class TestOutputAllocatorStaticModel(TestCase): |
47 | 52 | @parameterized.expand( |
48 | 53 | [ |
@@ -153,7 +158,7 @@ def test_combination_of_cg_and_oa(self, _, use_python_runtime): |
153 | 158 |
|
154 | 159 |
|
155 | 160 | @unittest.skipIf( |
156 | | - torch_tensorrt.ENABLED_FEATURES.tensorrt_rtx, |
| 161 | + torch_tensorrt.ENABLED_FEATURES.tensorrt_rtx or is_thor() or is_tegra_platform(), |
157 | 162 | "TensorRT RTX does not support nonzero which are required for this test", |
158 | 163 | ) |
159 | 164 | class TestOutputAllocatorDDSModel(TestCase): |
@@ -263,7 +268,7 @@ def test_combination_of_cg_and_oa(self, _, use_python_runtime): |
263 | 268 |
|
264 | 269 |
|
265 | 270 | @unittest.skipIf( |
266 | | - torch_tensorrt.ENABLED_FEATURES.tensorrt_rtx, |
| 271 | + torch_tensorrt.ENABLED_FEATURES.tensorrt_rtx or is_thor() or is_tegra_platform(), |
267 | 272 | "TensorRT RTX does not support nonzero which are required for this test", |
268 | 273 | ) |
269 | 274 | class TestOutputAllocatorDDSOpWithReductionOpModel(TestCase): |
@@ -377,7 +382,7 @@ def test_combination_of_cg_and_oa(self, _, use_python_runtime): |
377 | 382 |
|
378 | 383 |
|
379 | 384 | @unittest.skipIf( |
380 | | - torch_tensorrt.ENABLED_FEATURES.tensorrt_rtx, |
| 385 | + torch_tensorrt.ENABLED_FEATURES.tensorrt_rtx or is_thor() or is_tegra_platform(), |
381 | 386 | "TensorRT RTX does not support nonzero which are required for this test", |
382 | 387 | ) |
383 | 388 | class TestOutputAllocatorDDSModelWithGraphBreak(TestCase): |
|
0 commit comments