From 899d1fd63158953df224a4b7af39b7d25a5a4647 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Sat, 4 Nov 2023 02:08:55 -0500 Subject: [PATCH] fix: Access jax.config from jax (#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 6ae53b7bec..61a14084c3 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)