Skip to content

Commit

Permalink
Adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fchollet committed Apr 7, 2024
1 parent 142ff58 commit 121055f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions keras/ops/linalg_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,9 @@ def test_inv(self):
)

def test_lu_factor(self):
if self._jax_uses_gpu():
self.skipTest("Skipping test with JAX + GPU due to temporary error")

def _pivot_matrix(pivots, n):
p_matrix = np.eye(n)
for i, p in enumerate(pivots):
Expand Down Expand Up @@ -477,6 +480,8 @@ def test_solve(self):
self.assertAllClose(output, expected_result)

def test_solve_triangular(self):
if self._jax_uses_gpu():
self.skipTest("Skipping test with JAX + GPU due to temporary error")

# 2d-case
x1 = np.array([[1, 2], [0, 5]], dtype="float32")
Expand Down
3 changes: 0 additions & 3 deletions keras/ops/numpy_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4562,9 +4562,6 @@ def test_elementwise_unary_indexed_slices_correctness(
def test_other_unary_symbolic_sparse_correctness(
self, op_function, op_class, np_op, op_kwargs, input_shape
):
if self._tensorflow_uses_gpu():
self.skipTest("Skipping test with TF + GPU due to XLA error")

x = np.random.random(input_shape)
if op_function is knp.mean:
x = create_indexed_slices(x)
Expand Down

0 comments on commit 121055f

Please sign in to comment.