mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[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:
parent
b85c460749
commit
dbad6d71c7
|
|
@ -1797,7 +1797,9 @@ class TestConvolutionNNDeviceType(NNTestCase):
|
||||||
self.assertEqual(expect, actual)
|
self.assertEqual(expect, actual)
|
||||||
|
|
||||||
@dtypes(torch.float, torch.cfloat)
|
@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):
|
def test_conv1d_same_padding_backward(self, device, dtype):
|
||||||
# Test F.conv1d gradients work with padding='same'
|
# Test F.conv1d gradients work with padding='same'
|
||||||
x = torch.rand(1, 1, 12, dtype=dtype, device=device, requires_grad=True)
|
x = torch.rand(1, 1, 12, dtype=dtype, device=device, requires_grad=True)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user