From 9c9fc876a009f721efa3cac1e5c953d9aa932769 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Fri, 5 Jan 2024 01:46:17 -0600 Subject: [PATCH] fix(backport): Access jax.config from jax (#2423) * Backport PR https://github.com/scikit-hep/pyhf/pull/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 :1: DeprecationWarning: Accessing jax.config via the jax.config submodule is deprecated ``` --- src/pyhf/tensor/jax_backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyhf/tensor/jax_backend.py b/src/pyhf/tensor/jax_backend.py index f7eef3aff2..4ea2509c71 100644 --- a/src/pyhf/tensor/jax_backend.py +++ b/src/pyhf/tensor/jax_backend.py @@ -1,4 +1,4 @@ -from jax.config import config +from jax import config config.update('jax_enable_x64', True)