Skip to content

Commit

Permalink
Support transfer guard in broadcast_one_to_all(). Fixes #25325
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 703666450
  • Loading branch information
danijar authored and Google-ML-Automation committed Dec 7, 2024
1 parent baedb62 commit 861115a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jax/experimental/multihost_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def pre_jit(x):
return host_local_array_to_global_array(inp, global_mesh, pspec)

def post_jit(x):
return np.asarray(x.addressable_data(0))
return jax.device_get(x.addressable_data(0))

in_tree = jax.tree.map(pre_jit, in_tree)
out_tree = jax.jit(_psum, out_shardings=jax.sharding.NamedSharding(
Expand Down

0 comments on commit 861115a

Please sign in to comment.