Update fake tensor error checks for bool tensor subtraction (#128492)

Fixes #127003

Pull Request resolved: https://github.com/pytorch/pytorch/pull/128492
Approved by: https://github.com/soulitzer
This commit is contained in:
Ambareesh Shyam Sundar
2024-06-17 13:41:15 +00:00
committed by PyTorch MergeBot
parent b0282071c4
commit 0f81473d7b
2 changed files with 9 additions and 2 deletions

View File

@ -3694,8 +3694,6 @@ class TestBinaryUfuncs(TestCase):
actual = op(x, y, alpha=alpha)
self.assertTrue(not (actual.isnan() or actual.isinf()))
# https://github.com/pytorch/pytorch/issues/127003
@xfailIfTorchDynamo
def test_sub_typing(self, device):
m1 = torch.tensor(
[True, False, False, True, False, False], dtype=torch.bool, device=device