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 @@ -6,6 +6,7 @@

#### Closed issues
- Fix missing cython file in MANIFEST.in (PR #763)
- Fix deprecated JAX function in `ot.backend.JaxBackend` (PR #771, Issue #770)

## 0.9.6

Expand Down
4 changes: 2 additions & 2 deletions ot/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
import jax
import jax.numpy as jnp
import jax.scipy.special as jspecial
from jax.lib import xla_bridge
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
Expand Down Expand Up @@ -1509,7 +1509,7 @@ def __init__(self):
self.__type_list__ = []
# available_devices = jax.devices("cpu")
available_devices = []
if xla_bridge.get_backend().platform == "gpu":
if _jax_get_backend().platform == "gpu":
available_devices += jax.devices("gpu")
for d in available_devices:
self.__type_list__ += [
Expand Down
Loading