Skip to content

Commit

Permalink
[JAX] Replace users of deprecated jax.lib.xla_bridge functions with m…
Browse files Browse the repository at this point in the history
…ore public names.

Change in preparation for removing some function exports from jax.lib.xla_bridge.

PiperOrigin-RevId: 404849899
  • Loading branch information
hawkinsp authored and jax authors committed Oct 21, 2021
1 parent 7a5e843 commit 11127ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloud_tpu_colabs/Pmap_Cookbook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@
},
"source": [
"from jax._src.lib import xla_bridge\n",
"device_count = xla_bridge.device_count()\n",
"device_count = jax.device_count()\n",
"\n",
"def send_right(x, axis_name):\n",
" left_perm = [(i, (i + 1) % device_count) for i in range(device_count)]\n",
Expand Down

0 comments on commit 11127ad

Please sign in to comment.