Skip to content

Commit

Permalink
fix(backport): Access jax.config from jax (#2423)
Browse files Browse the repository at this point in the history
* Backport PR #2376
* As of jax and jaxlib v0.4.20 accessing jax.config from the jax.config
  submodule is deprecated and it should be accessed from the jax top
  level API instead.

   ```
   >>> from jax.config import config
   <stdin>:1: DeprecationWarning: Accessing jax.config via the jax.config submodule is deprecated
   ```
  • Loading branch information
matthewfeickert authored Jan 5, 2024
1 parent 51e55f7 commit 9c9fc87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyhf/tensor/jax_backend.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from jax.config import config
from jax import config

config.update('jax_enable_x64', True)

Expand Down

0 comments on commit 9c9fc87

Please sign in to comment.