[BE][Ez]: Unskip conv1d MPS test (#154795)

Fixes issue I noticed where conv1d test is skipped for complex types unconditionally
Pull Request resolved: https://github.com/pytorch/pytorch/pull/154795
Approved by: https://github.com/jansel
This commit is contained in:
Aaron Gokaslan
2025-05-31 23:01:16 +00:00
committed by PyTorch MergeBot
parent b85c460749
commit dbad6d71c7

View File

@ -1797,7 +1797,9 @@ class TestConvolutionNNDeviceType(NNTestCase):
self.assertEqual(expect, actual)
@dtypes(torch.float, torch.cfloat)
@dtypesIfMPS(torch.float)
@dtypesIfMPS(
*([torch.float] if MACOS_VERSION < 14.0 else [torch.float, torch.cfloat])
) # Complex not supported on MacOS13
def test_conv1d_same_padding_backward(self, device, dtype):
# Test F.conv1d gradients work with padding='same'
x = torch.rand(1, 1, 12, dtype=dtype, device=device, requires_grad=True)