diff --git a/test/inductor/test_torchinductor.py b/test/inductor/test_torchinductor.py index 63c76810eb4..88e7c586328 100644 --- a/test/inductor/test_torchinductor.py +++ b/test/inductor/test_torchinductor.py @@ -1369,7 +1369,11 @@ class CommonTemplate: b = torch.add(args[0], args[0]) return (a, b) - x = torch.randn(41, dtype=torch.complex64) + # Complex are not supported on MacOS-13 + if self.device == "mps" and MACOS_VERSION < 14.0: + raise unittest.SkipTest("No complex on MacOS13") + + x = torch.randn(41, dtype=torch.complex64, device=self.device) y = x.clone() # should not inplace write to the input fn(x)