Skip to content

Skip tests in test_torch that got enabled through the LAPACK addition #207

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 13, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions test/test_torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -3931,6 +3931,7 @@ def test_is_signed_cuda(self):
self.assertEqual(torch.cuda.HalfTensor(10).is_signed(), True)

@skipIfNoLapack
@skipIfRocm
def test_gesv(self):
a = torch.Tensor(((6.80, -2.11, 5.66, 5.97, 8.23),
(-6.05, -3.30, 5.36, -4.44, 1.08),
Expand Down Expand Up @@ -4061,6 +4062,7 @@ def test_gesv_batched_dims(self):
self._test_gesv_batched_dims(self, lambda t: t)

@skipIfNoLapack
@skipIfRocm
def test_qr(self):

# Since the QR decomposition is unique only up to the signs of the rows of
Expand Down Expand Up @@ -4243,10 +4245,12 @@ def _test_trtrs(self, cast):
self.assertEqual(res1, tb, 0)

@skipIfNoLapack
@skipIfRocm
def test_trtrs(self):
self._test_trtrs(self, lambda t: t)

@skipIfNoLapack
@skipIfRocm
def test_gels(self):
def _test_underdetermined(a, b, expectedNorm):
m = a.size()[0]
Expand Down Expand Up @@ -4362,6 +4366,7 @@ def check_norm(a, b, expected_norm, gels_result):
self.assertEqual((torch.mm(a, tb) - b).norm(), expectedNorm, 1e-8)

@skipIfNoLapack
@skipIfRocm
def test_eig(self):
a = torch.Tensor(((1.96, 0.00, 0.00, 0.00, 0.00),
(-6.49, 3.80, 0.00, 0.00, 0.00),
Expand Down