mirror of
https://github.com/ml-explore/mlx.git
synced 2025-10-17 23:08:11 +08:00
cuda fix flaky test (#2646)
This commit is contained in:
@@ -2005,6 +2005,7 @@ class TestArray(mlx_tests.MLXTestCase):
|
||||
b = mx.reshape(b, [])
|
||||
return b
|
||||
|
||||
mx.synchronize()
|
||||
t()
|
||||
gc.collect()
|
||||
expected = get_mem()
|
||||
|
@@ -746,6 +746,7 @@ class TestAutograd(mlx_tests.MLXTestCase):
|
||||
mx.checkpoint,
|
||||
]:
|
||||
mx.synchronize()
|
||||
gc.collect()
|
||||
mem_pre = mx.get_active_memory()
|
||||
|
||||
def outer():
|
||||
|
Reference in New Issue
Block a user