Skip to content

Commit 9b4b742

Browse files
authored
Skip v1 compat check on M1 for LinearTransform (#8454)
1 parent f0c94cd commit 9b4b742

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/test_transforms_v2.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5203,6 +5203,11 @@ def test_transform(self, make_input, dtype, device):
52035203
transforms.LinearTransformation(*self._make_matrix_and_vector(input)),
52045204
input,
52055205
check_sample_input=self._sample_input_adapter,
5206+
# Compat check is failing on M1 with:
5207+
# AssertionError: Tensor-likes are not close!
5208+
# Mismatched elements: 1 / 561 (0.2%)
5209+
# See https://github.com/pytorch/vision/issues/8453
5210+
check_v1_compatibility=(sys.platform != "darwin"),
52065211
)
52075212

52085213
def test_transform_error(self):

0 commit comments

Comments
 (0)