diff options
Diffstat (limited to 'tensorflow/python/kernel_tests/matrix_inverse_op_test.py')
-rw-r--r-- | tensorflow/python/kernel_tests/matrix_inverse_op_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/python/kernel_tests/matrix_inverse_op_test.py b/tensorflow/python/kernel_tests/matrix_inverse_op_test.py index f41967ff98..720ba806e9 100644 --- a/tensorflow/python/kernel_tests/matrix_inverse_op_test.py +++ b/tensorflow/python/kernel_tests/matrix_inverse_op_test.py @@ -114,7 +114,7 @@ class InverseOpTest(test.TestCase): def testNotInvertible(self): # The input should be invertible. - with self.test_session(): + with self.cached_session(): with self.assertRaisesOpError("Input is not invertible."): # All rows of the matrix below add to zero. tensor3 = constant_op.constant([[1., 0., -1.], [-1., 1., 0.], |