mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 13:44:15 +08:00
[3/N] Enable UBSAN tests (#142022)
Fixes #ISSUE_NUMBER Pull Request resolved: https://github.com/pytorch/pytorch/pull/142022 Approved by: https://github.com/ezyang
This commit is contained in:
@ -24,7 +24,6 @@ from torch.testing._internal.common_utils import (
|
|||||||
NoTest,
|
NoTest,
|
||||||
run_tests,
|
run_tests,
|
||||||
suppress_warnings,
|
suppress_warnings,
|
||||||
TEST_WITH_UBSAN,
|
|
||||||
TEST_XPU,
|
TEST_XPU,
|
||||||
TestCase,
|
TestCase,
|
||||||
)
|
)
|
||||||
@ -342,7 +341,6 @@ print(torch.xpu.device_count())
|
|||||||
|
|
||||||
@onlyXPU
|
@onlyXPU
|
||||||
@ops(_xpu_computation_ops, allowed_dtypes=(torch.bool,))
|
@ops(_xpu_computation_ops, allowed_dtypes=(torch.bool,))
|
||||||
@unittest.skipIf(TEST_WITH_UBSAN, "Test uses undefined behavior")
|
|
||||||
def test_non_standard_bool_values(self, device, dtype, op):
|
def test_non_standard_bool_values(self, device, dtype, op):
|
||||||
# Test boolean values other than 0x00 and 0x01 (gh-54789)
|
# Test boolean values other than 0x00 and 0x01 (gh-54789)
|
||||||
def convert_boolean_tensors(x):
|
def convert_boolean_tensors(x):
|
||||||
|
Reference in New Issue
Block a user