From 9b4b7423f7e3c1da1804e010ca6686486f495958 Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Thu, 30 May 2024 09:36:26 +0100 Subject: [PATCH] Skip v1 compat check on M1 for LinearTransform (#8454) --- test/test_transforms_v2.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test_transforms_v2.py b/test/test_transforms_v2.py index 07235333af4..b0c1659f253 100644 --- a/test/test_transforms_v2.py +++ b/test/test_transforms_v2.py @@ -5203,6 +5203,11 @@ def test_transform(self, make_input, dtype, device): transforms.LinearTransformation(*self._make_matrix_and_vector(input)), input, check_sample_input=self._sample_input_adapter, + # Compat check is failing on M1 with: + # AssertionError: Tensor-likes are not close! + # Mismatched elements: 1 / 561 (0.2%) + # See https://github.com/pytorch/vision/issues/8453 + check_v1_compatibility=(sys.platform != "darwin"), ) def test_transform_error(self):