File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 22
33from __future__ import annotations
44
5+ import warnings
6+
57import awkward_cpp
68
79import awkward as ak
@@ -28,6 +30,12 @@ def nplike(self) -> Jax:
2830 return self ._jax
2931
3032 def __init__ (self ):
33+ warnings .warn (
34+ "The JAX backend is deprecated and will be removed in a future release of Awkward Array. "
35+ "Please plan to migrate your code accordingly." ,
36+ DeprecationWarning ,
37+ stacklevel = 2 ,
38+ )
3139 self ._jax = Jax .instance ()
3240
3341 def __getitem__ (self , index : KernelKeyType ) -> JaxKernel :
Original file line number Diff line number Diff line change 22
33from __future__ import annotations
44
5+ import warnings
6+
57import awkward as ak
68from awkward ._nplikes .array_like import ArrayLike
79from awkward ._nplikes .array_module import ArrayModuleNumpyLike
@@ -19,6 +21,12 @@ class Jax(ArrayModuleNumpyLike):
1921 supports_virtual_arrays : Final = True
2022
2123 def __init__ (self ):
24+ warnings .warn (
25+ "The JAX backend is deprecated and will be removed in a future release of Awkward Array. "
26+ "Please plan to migrate your code accordingly." ,
27+ DeprecationWarning ,
28+ stacklevel = 2 ,
29+ )
2230 jax = ak .jax .import_jax ()
2331 self ._module = jax .numpy
2432
You can’t perform that action at this time.
0 commit comments