Skip to content

Commit

Permalink
Revert get_local_data to original implementation.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 642628016
  • Loading branch information
liangyaning33 authored and t5-copybara committed Jun 12, 2024
1 parent 9e0093e commit 6132635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t5x/checkpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def latest_step(checkpoints_dir: str) -> Optional[int]:
def get_local_data(x):
"""Get local buffer for input data."""
if isinstance(x, jax.Array) and not isinstance(x, jax.core.Tracer):
return np.asarray(x.addressable_data(0))
return x.addressable_data(0)
else:
return x

Expand Down

0 comments on commit 6132635

Please sign in to comment.