已合并
【inductor】Temporarily close some inductor ci tests, accelarate ci access control #30302
kkjocker创建于 1月31日
【inductor】Temporarily close some inductor ci tests, accelarate ci access control #30302
已合并
共 8 个文件变更+16-0
| @@ -1,3 +1,4 @@ | |||
| 1 | +import unittest | ||
| 1 | import torch | 2 | import torch |
| 2 | from torch.testing._internal.common_utils import run_tests, parametrize, instantiate_parametrized_tests | 3 | from torch.testing._internal.common_utils import run_tests, parametrize, instantiate_parametrized_tests |
| 3 | from testutils import TestUtils | 4 | from testutils import TestUtils |
| @@ -9,6 +10,7 @@ class TestAbs(TestUtils): | |||
| 9 | result = torch.abs(first_element) | 10 | result = torch.abs(first_element) |
| 10 | return result | 11 | return result |
| 11 | 12 | ||
| 13 | + | ||
| 12 | 14 | ||
| 13 | 15 | ||
| 14 | def test_pointwise_cases(self, shape, dtype): | 16 | def test_pointwise_cases(self, shape, dtype): |
| @@ -1,3 +1,4 @@ | |||
| 1 | +import unittest | ||
| 1 | import torch | 2 | import torch |
| 2 | from torch.testing._internal.common_utils import run_tests, parametrize, instantiate_parametrized_tests | 3 | from torch.testing._internal.common_utils import run_tests, parametrize, instantiate_parametrized_tests |
| 3 | from testutils import TestUtils | 4 | from testutils import TestUtils |
| @@ -9,6 +10,7 @@ class TestFloor(TestUtils): | |||
| 9 | result = torch.floor(first_element) | 10 | result = torch.floor(first_element) |
| 10 | return result | 11 | return result |
| 11 | 12 | ||
| 13 | + | ||
| 12 | 14 | ||
| 13 | 15 | ||
| 14 | def test_pointwise_cases(self, shape, dtype): | 16 | def test_pointwise_cases(self, shape, dtype): |
| @@ -1,3 +1,4 @@ | |||
| 1 | +import unittest | ||
| 1 | import torch | 2 | import torch |
| 2 | from torch.testing._internal.common_utils import run_tests, parametrize, instantiate_parametrized_tests | 3 | from torch.testing._internal.common_utils import run_tests, parametrize, instantiate_parametrized_tests |
| 3 | from testutils import TestUtils | 4 | from testutils import TestUtils |
| @@ -8,6 +9,7 @@ class TestGe(TestUtils): | |||
| 8 | def op_calc(self, first_element, second_element): | 9 | def op_calc(self, first_element, second_element): |
| 9 | return torch.ge(first_element, second_element) | 10 | return torch.ge(first_element, second_element) |
| 10 | 11 | ||
| 12 | + | ||
| 11 | 13 | ||
| 12 | 14 | ||
| 13 | def test_pointwise_cases(self, shape, dtype): | 15 | def test_pointwise_cases(self, shape, dtype): |
| @@ -1,3 +1,4 @@ | |||
| 1 | +import unittest | ||
| 1 | import torch | 2 | import torch |
| 2 | from torch.testing._internal.common_utils import run_tests, parametrize, instantiate_parametrized_tests | 3 | from torch.testing._internal.common_utils import run_tests, parametrize, instantiate_parametrized_tests |
| 3 | from testutils import TestUtils | 4 | from testutils import TestUtils |
| @@ -9,6 +10,7 @@ class TestGt(TestUtils): | |||
| 9 | result = torch.gt(first_element, second_element) | 10 | result = torch.gt(first_element, second_element) |
| 10 | return result | 11 | return result |
| 11 | 12 | ||
| 13 | + | ||
| 12 | 14 | ||
| 13 | 15 | ||
| 14 | def test_pointwise_cases(self, shape, dtype): | 16 | def test_pointwise_cases(self, shape, dtype): |
| @@ -1,3 +1,4 @@ | |||
| 1 | +import unittest | ||
| 1 | import torch | 2 | import torch |
| 2 | from torch.testing._internal.common_utils import run_tests, parametrize, instantiate_parametrized_tests | 3 | from torch.testing._internal.common_utils import run_tests, parametrize, instantiate_parametrized_tests |
| 3 | from testutils import TestUtils | 4 | from testutils import TestUtils |
| @@ -15,6 +16,7 @@ class TestReshape(TestUtils): | |||
| 15 | y = a + b | 16 | y = a + b |
| 16 | return y | 17 | return y |
| 17 | 18 | ||
| 19 | + | ||
| 18 | 20 | ||
| 19 | 21 | ||
| 20 | def test_view_cases(self, shape, dtype): | 22 | def test_view_cases(self, shape, dtype): |
| @@ -1,3 +1,4 @@ | |||
| 1 | +import unittest | ||
| 1 | import torch | 2 | import torch |
| 2 | from torch.testing._internal.common_utils import run_tests, parametrize, instantiate_parametrized_tests | 3 | from torch.testing._internal.common_utils import run_tests, parametrize, instantiate_parametrized_tests |
| 3 | from testutils import TestUtils | 4 | from testutils import TestUtils |
| @@ -9,6 +10,7 @@ class TestRsqrt(TestUtils): | |||
| 9 | result = torch.rsqrt(first_element) | 10 | result = torch.rsqrt(first_element) |
| 10 | return result | 11 | return result |
| 11 | 12 | ||
| 13 | + | ||
| 12 | 14 | ||
| 13 | 15 | ||
| 14 | def test_pointwise_cases(self, shape, dtype): | 16 | def test_pointwise_cases(self, shape, dtype): |
| @@ -1,3 +1,4 @@ | |||
| 1 | +import unittest | ||
| 1 | import torch | 2 | import torch |
| 2 | from torch.testing._internal.common_utils import run_tests, parametrize, instantiate_parametrized_tests | 3 | from torch.testing._internal.common_utils import run_tests, parametrize, instantiate_parametrized_tests |
| 3 | from testutils import TestUtils | 4 | from testutils import TestUtils |
| @@ -9,6 +10,7 @@ class TestSub(TestUtils): | |||
| 9 | result = first_element - second_element | 10 | result = first_element - second_element |
| 10 | return result | 11 | return result |
| 11 | 12 | ||
| 13 | + | ||
| 12 | 14 | ||
| 13 | 15 | ||
| 14 | def test_pointwise_cases(self, shape, dtype): | 16 | def test_pointwise_cases(self, shape, dtype): |
| @@ -1,3 +1,4 @@ | |||
| 1 | +import unittest | ||
| 1 | import torch | 2 | import torch |
| 2 | from torch.testing._internal.common_utils import run_tests, parametrize, instantiate_parametrized_tests | 3 | from torch.testing._internal.common_utils import run_tests, parametrize, instantiate_parametrized_tests |
| 3 | from testutils import TestUtils | 4 | from testutils import TestUtils |
| @@ -8,6 +9,7 @@ class TestWhere(TestUtils): | |||
| 8 | def op_calc(self, condition, first_element, second_element): | 9 | def op_calc(self, condition, first_element, second_element): |
| 9 | return torch.where(condition, first_element, second_element) | 10 | return torch.where(condition, first_element, second_element) |
| 10 | 11 | ||
| 12 | + | ||
| 11 | 13 | ||
| 12 | 14 | ||
| 13 | def test_pointwise_cases(self, shape, dtype): | 15 | def test_pointwise_cases(self, shape, dtype): |