Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tpu_raiden/frameworks/jax/weight_synchronizer_ffi.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def init_weight_synchronizer(
`listener_port >= 0`).
"""

@compute_on.compute_on2(
@compute_on.compute_on(
compute_type="device_host", out_memory_spaces=jax.memory.Space.Device
)
def _local_init(anchor, s_idx):
Expand Down Expand Up @@ -118,7 +118,7 @@ def init_weight_synchronizer_and_d2h(
`listener_port >= 0`).
"""

@compute_on.compute_on2(
@compute_on.compute_on(
compute_type="device_host", out_memory_spaces=jax.memory.Space.Device
)
def _local_init_and_d2h(anchor, s_idx):
Expand Down Expand Up @@ -188,7 +188,7 @@ def h2d(device_array, shard_idx, mesh) -> jax.Array:
buffer.
"""

@compute_on.compute_on2(
@compute_on.compute_on(
compute_type="device_host", out_memory_spaces=jax.memory.Space.Device
)
def _local_h2d(anchor, s_idx):
Expand Down
Loading