aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/tests/cholesky_op_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/compiler/tests/cholesky_op_test.py')
-rw-r--r--tensorflow/compiler/tests/cholesky_op_test.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/tensorflow/compiler/tests/cholesky_op_test.py b/tensorflow/compiler/tests/cholesky_op_test.py
index d2867278af..ed532db0ee 100644
--- a/tensorflow/compiler/tests/cholesky_op_test.py
+++ b/tensorflow/compiler/tests/cholesky_op_test.py
@@ -18,8 +18,6 @@ from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
-import unittest
-
import numpy as np
from six.moves import xrange # pylint: disable=redefined-builtin
@@ -103,9 +101,8 @@ class CholeskyOpTest(xla_test.XLATestCase):
with self.assertRaises(ValueError):
linalg_ops.cholesky(tensor3)
- @unittest.skip("Test is slow")
- def testLarge(self):
- n = 200
+ def testLarge2000x2000(self):
+ n = 2000
shape = (n, n)
data = np.ones(shape).astype(np.float32) / (2.0 * n) + np.diag(
np.ones(n).astype(np.float32))
@@ -128,6 +125,5 @@ class CholeskyOpTest(xla_test.XLATestCase):
matrix = np.dot(np.dot(w, np.diag(v)), w.T).astype(dtype)
self._verifyCholesky(matrix, atol=1e-4)
-
if __name__ == "__main__":
test.main()