Skip to content

Commit 861115a

Browse files
danijarGoogle-ML-Automation
authored andcommitted
Support transfer guard in broadcast_one_to_all(). Fixes jax-ml#25325
PiperOrigin-RevId: 703666450
1 parent baedb62 commit 861115a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jax/experimental/multihost_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def pre_jit(x):
7575
return host_local_array_to_global_array(inp, global_mesh, pspec)
7676

7777
def post_jit(x):
78-
return np.asarray(x.addressable_data(0))
78+
return jax.device_get(x.addressable_data(0))
7979

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

0 commit comments

Comments
 (0)