Skip to content

Commit eca3cb6

Browse files
Jake VanderPlasDistraxDev
authored andcommitted
Replace usage of xla.abstractify with core.get_aval where feasible.
PiperOrigin-RevId: 730598559
1 parent 8ffec28 commit eca3cb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

distrax/_src/utils/jittable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def _is_jax_data(x):
6363

6464
# Otherwise, try to make it into a tracer. If it succeeds, then it's JAX data.
6565
try:
66-
jax.interpreters.xla.abstractify(x)
66+
jax.core.get_aval(x)
6767
return True
6868
except TypeError:
6969
return False

0 commit comments

Comments
 (0)