Skip to content

Commit

Permalink
Skip symmetric product test on older jaxlibs.
Browse files Browse the repository at this point in the history
The new symmetric product operator will appear to jaxlib 0.4.32.

PiperOrigin-RevId: 672311569
  • Loading branch information
hawkinsp authored and jax authors committed Sep 8, 2024
1 parent 79dabe5 commit 5af1efb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/linalg_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

from functools import partial
import itertools
import unittest

import numpy as np
import scipy
Expand Down Expand Up @@ -2193,6 +2194,9 @@ def testHilbert(self, n):
symmetrize_output=[True, False],
)
@jtu.skip_on_devices("tpu")
@unittest.skipIf(
jax._src.lib.version < (0, 4, 32), "requires jaxlib >= 0.4.32"
)
def testSymmetricProduct(self, shape, dtype, symmetrize_output):
rng = jtu.rand_default(self.rng())
batch_size = 10
Expand Down

0 comments on commit 5af1efb

Please sign in to comment.