Skip to content

Commit 5c681d8

Browse files
committed
Fix bytes_limit key of mem_stats (#243)
(cherry picked from commit c5ee54f)
1 parent f7d8497 commit 5c681d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/multi_device_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def test_lax_full_like_efficient(self):
304304
self.skipTest('Only can run test on device with mem_stats')
305305
mesh = Mesh(devices, axis_names=("i"))
306306
sharding = NamedSharding(mesh, P('i'))
307-
available_memory = mem_stats['bytes_reservable_limit']
307+
available_memory = mem_stats['bytes_limit']
308308
array_size = available_memory // (6 * len(devices)) * len(devices)
309309
# Set up tracemalloc to track memory usage.
310310
tm.start()

0 commit comments

Comments
 (0)