Skip to content

Commit

Permalink
Avoid use of deprecated device_buffer attriutes of jax.Array
Browse files Browse the repository at this point in the history
These have been deprecated as of JAX v0.4.22

PiperOrigin-RevId: 589237955
  • Loading branch information
Jake VanderPlas authored and t5-copybara committed Dec 11, 2023
1 parent 5f7aa29 commit 23d2f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t5x/trainer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def test_timer_blocking_on_donated_buffer(self):
mm._duration_timer._start_future.result()

# Deleted/donated.
x.device_buffer.delete()
x.addressable_data(0).delete()
mm.start_duration_timer(block_on=x)
mm._duration_timer._start_future.result()

Expand Down

0 comments on commit 23d2f85

Please sign in to comment.