From 40fe4b8797cbd0844c67f92df32b7f145d0dbb4f Mon Sep 17 00:00:00 2001 From: Jake VanderPlas Date: Mon, 23 Dec 2024 09:23:06 -0800 Subject: [PATCH] Finalize deprecation of some symbols from jax.lib.xla_client --- CHANGELOG.md | 3 +++ jax/lib/xla_client.py | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index db9d05088..bb9404268 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,9 @@ When releasing, please add the new-release-boilerplate to docs/pallas/CHANGELOG. * Deletions * `jax_enable_memories` flag has been deleted and the behavior of that flag is on by default. + * From `jax.lib.xla_client`, the previously-deprecated `Device` and + `XlaRuntimeError` symbols have been removed; instead use `jax.Device` + and `jax.errors.JaxRuntimeError` respectively. ## jax 0.4.38 (Dec 17, 2024) diff --git a/jax/lib/xla_client.py b/jax/lib/xla_client.py index f6c4d16e6..86e7307c8 100644 --- a/jax/lib/xla_client.py +++ b/jax/lib/xla_client.py @@ -36,17 +36,17 @@ _deprecations = { "jax.lib.xla_client.bfloat16 was removed in JAX v0.4.38; use ml_dtypes.bfloat16.", None, ), - # Added Sep 26 2024 + # Finalized 2024-12-23; remove after 2024-03-23 "Device": ( "jax.lib.xla_client.Device is deprecated; use jax.Device instead.", - _xc.Device, + None, ), "XlaRuntimeError": ( ( "jax.lib.xla_client.XlaRuntimeError is deprecated; use" " jax.errors.JaxRuntimeError." ), - _xc.XlaRuntimeError, + None, ), # Added Oct 10 2024 "FftType": (