mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[6/N] Don't skip ASAN on some tests (#139565)
Fixes #ISSUE_NUMBER Pull Request resolved: https://github.com/pytorch/pytorch/pull/139565 Approved by: https://github.com/ezyang
This commit is contained in:
@ -18,7 +18,6 @@ from torch.testing._internal.common_utils import (
|
||||
TestCase,
|
||||
skipIfCrossRef,
|
||||
suppress_warnings,
|
||||
TEST_WITH_ASAN,
|
||||
TEST_WITH_TORCHDYNAMO,
|
||||
run_tests,
|
||||
dtype_abbrs,
|
||||
@ -1149,7 +1148,6 @@ class TestMeta(TestCase):
|
||||
|
||||
return _fn
|
||||
|
||||
@unittest.skipIf(TEST_WITH_ASAN, "Skipped under ASAN")
|
||||
@skipIfCrossRef
|
||||
@suppress_warnings
|
||||
@ops(itertools.chain(op_db, foreach_op_db))
|
||||
@ -1196,7 +1194,6 @@ class TestMeta(TestCase):
|
||||
if op.name != "empty_like":
|
||||
self.assertEqual(ref, meta)
|
||||
|
||||
@unittest.skipIf(TEST_WITH_ASAN, "Skipped under ASAN")
|
||||
@skipIfCrossRef
|
||||
@suppress_warnings
|
||||
@ops(itertools.chain(op_db, foreach_op_db))
|
||||
@ -1261,21 +1258,18 @@ class TestMeta(TestCase):
|
||||
func(*args, **kwargs, out=expected)
|
||||
|
||||
|
||||
@unittest.skipIf(TEST_WITH_ASAN, "Skipped under ASAN")
|
||||
@skipIfCrossRef
|
||||
@suppress_warnings
|
||||
@ops(itertools.chain(op_db, foreach_op_db))
|
||||
def test_dispatch_meta_outplace(self, device, dtype, op):
|
||||
self._run_dispatch_meta_test(device, dtype, op, symbolic_meta=False, inplace=False)
|
||||
|
||||
@unittest.skipIf(TEST_WITH_ASAN, "Skipped under ASAN")
|
||||
@skipIfCrossRef
|
||||
@suppress_warnings
|
||||
@ops(itertools.chain(op_db, foreach_op_db))
|
||||
def test_dispatch_meta_inplace(self, device, dtype, op):
|
||||
self._run_dispatch_meta_test(device, dtype, op, symbolic_meta=False, inplace=True)
|
||||
|
||||
@unittest.skipIf(TEST_WITH_ASAN, "Skipped under ASAN")
|
||||
@skipIfCrossRef
|
||||
@suppress_warnings
|
||||
@ops(itertools.chain(op_db, foreach_op_db))
|
||||
@ -1283,14 +1277,12 @@ class TestMeta(TestCase):
|
||||
self._run_dispatch_meta_test(device, dtype, op, symbolic_meta=True, inplace=False)
|
||||
|
||||
|
||||
@unittest.skipIf(TEST_WITH_ASAN, "Skipped under ASAN")
|
||||
@skipIfCrossRef
|
||||
@suppress_warnings
|
||||
@ops(itertools.chain(op_db, foreach_op_db))
|
||||
def test_dispatch_symbolic_meta_inplace(self, device, dtype, op):
|
||||
self._run_dispatch_meta_test(device, dtype, op, symbolic_meta=True, inplace=True)
|
||||
|
||||
@unittest.skipIf(TEST_WITH_ASAN, "Skipped under ASAN")
|
||||
@skipIfCrossRef
|
||||
@suppress_warnings
|
||||
# only test one dtype, as output stride behavior is the same for all dtypes
|
||||
@ -1300,7 +1292,6 @@ class TestMeta(TestCase):
|
||||
def test_dispatch_symbolic_meta_outplace_all_strides(self, device, dtype, op):
|
||||
self._run_dispatch_meta_test(device, dtype, op, symbolic_meta=True, inplace=False, all_stride_variants=True)
|
||||
|
||||
@unittest.skipIf(TEST_WITH_ASAN, "Skipped under ASAN")
|
||||
@skipIfCrossRef
|
||||
@suppress_warnings
|
||||
# only test one dtype, as output stride behavior is the same for all dtypes
|
||||
@ -1310,7 +1301,6 @@ class TestMeta(TestCase):
|
||||
def test_dispatch_symbolic_meta_inplace_all_strides(self, device, dtype, op):
|
||||
self._run_dispatch_meta_test(device, dtype, op, symbolic_meta=True, inplace=True, all_stride_variants=True)
|
||||
|
||||
@unittest.skipIf(TEST_WITH_ASAN, "Skipped under ASAN")
|
||||
@skipIfCrossRef
|
||||
@suppress_warnings
|
||||
# only test one dtype, as output stride behavior is the same for all dtypes
|
||||
|
Reference in New Issue
Block a user