π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
Mark test ssim with xfail (#908)
Edgar Ribaa8b8973107e4
diff --git a/test/test_losses.py b/test/test_losses.pyindex 20a99fb49..0407b9998 100644--- a/test/test_losses.py+++ b/test/test_losses.py@@ -354,6 +354,9 @@ class TestSSIMLoss:@pytest.mark.parametrize("reduction_type", ["mean", "sum"])@pytest.mark.parametrize("batch_shape", [(1, 1, 10, 16), (2, 4, 8, 15)])def test_ssim(self, device, dtype, batch_shape, window_size, reduction_type):+ if device.type == 'xla':+ pytest.skip("test highly unstable with tpu")+# input dataimg = torch.rand(batch_shape, device=device, dtype=dtype)