mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[1/N] Don't skip ASAN on some tests (#138571)
Clang15's ASAN is new enough so that it's possible to re-evaluate the disabled ASAN tests. Pull Request resolved: https://github.com/pytorch/pytorch/pull/138571 Approved by: https://github.com/ezyang
This commit is contained in:
parent
d437df342b
commit
86cca3fb05
|
|
@ -14,11 +14,7 @@ from torch.testing._internal.common_device_type import (
|
|||
ops,
|
||||
)
|
||||
from torch.testing._internal.common_methods_invocations import DecorateInfo, op_db
|
||||
from torch.testing._internal.common_utils import (
|
||||
run_tests,
|
||||
suppress_warnings,
|
||||
TEST_WITH_ASAN,
|
||||
)
|
||||
from torch.testing._internal.common_utils import run_tests, suppress_warnings
|
||||
from torch.testing._internal.distributed._tensor.common_dtensor import (
|
||||
DTensorConverter,
|
||||
DTensorOpTestBase,
|
||||
|
|
@ -528,7 +524,6 @@ class TestDTensorOps(DTensorOpTestBase):
|
|||
|
||||
# only allow float dytpe for now, we can relax this constraint
|
||||
# when feel necessary later (i.e when adding quantization support).
|
||||
@unittest.skipIf(TEST_WITH_ASAN, "Skipped under ASAN")
|
||||
@suppress_warnings
|
||||
@ops(op_db, allowed_dtypes=(torch.float,))
|
||||
@skipOps("TestDTensorOps", "test_dtensor_op_db", dtensor_fails)
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import collections
|
|||
import unittest
|
||||
|
||||
import torch
|
||||
from torch.testing._internal.common_utils import run_tests, TEST_WITH_ASAN, TestCase
|
||||
from torch.testing._internal.common_utils import run_tests, TestCase
|
||||
|
||||
|
||||
try:
|
||||
|
|
@ -27,7 +27,6 @@ class Network(torch.nn.Module):
|
|||
|
||||
|
||||
@unittest.skipIf(not HAS_PSUTIL, "Requires psutil to run")
|
||||
@unittest.skipIf(TEST_WITH_ASAN, "Cannot test with ASAN")
|
||||
class TestOpenMP_ParallelFor(TestCase):
|
||||
batch = 20
|
||||
channels = 1
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user