Skip to content

Commit f4c1dbe

Browse files
committed
fix conversion to numpy in test_positive_semi_definite
1 parent 92a5673 commit f4c1dbe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_links/test_links.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def test_positive_semi_definite(random_matrix_batch):
6666

6767
output = activation(random_matrix_batch)
6868

69+
output = keras.ops.convert_to_numpy(output)
6970
eigenvalues = np.linalg.eig(output).eigenvalues
7071

7172
assert np.all(eigenvalues.real > 0) and np.all(np.isclose(eigenvalues.imag, 0)), (

0 commit comments

Comments
 (0)