Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ This new release adds support for sparse cost matrices and a new lazy EMD solver
- Fix openmp flags on macOS (PR #789)
- Clean documentation (PR #787)
- Fix code coverage (PR #791)
- Fix test of the version of jax in `ot.backend` (PR #794)


## 0.9.6.post1
Expand Down
7 changes: 6 additions & 1 deletion ot/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,12 @@
from jax.extend.backend import get_backend as _jax_get_backend

jax_type = jax.numpy.ndarray
jax_new_version = float(".".join(jax.__version__.split(".")[1:])) > 4.24
jax_new_version = tuple([float(s) for s in jax.__version__.split(".")]) > (
0,
4,
24,
0,
)
except ImportError:
jax = False
jax_type = float
Expand Down
Loading