Example #1
0
 def _compareDeterminant(self, matrix_x):
     with self.cached_session(use_gpu=True):
         self._compareDeterminantBase(
             matrix_x, linalg_ops.matrix_determinant(matrix_x))
         self._compareLogDeterminantBase(
             matrix_x, gen_linalg_ops.log_matrix_determinant(matrix_x))
 def _compareDeterminant(self, matrix_x):
     with test_util.use_gpu():
         self._compareDeterminantBase(
             matrix_x, linalg_ops.matrix_determinant(matrix_x))
         self._compareLogDeterminantBase(
             matrix_x, gen_linalg_ops.log_matrix_determinant(matrix_x))
 def _compareDeterminant(self, matrix_x):
   with self.cached_session(use_gpu=True):
     self._compareDeterminantBase(matrix_x,
                                  linalg_ops.matrix_determinant(matrix_x))
     self._compareLogDeterminantBase(
         matrix_x, gen_linalg_ops.log_matrix_determinant(matrix_x))
 def _compareDeterminant(self, matrix_x):
   with test_util.use_gpu():
     self._compareDeterminantBase(matrix_x,
                                  linalg_ops.matrix_determinant(matrix_x))
     self._compareLogDeterminantBase(
         matrix_x, gen_linalg_ops.log_matrix_determinant(matrix_x))