fix synch

This commit is contained in:
Awni Hannun 2024-10-24 06:19:19 -07:00
parent 131ccbe6df
commit 2822acc98a

View File

@ -58,8 +58,7 @@ def wired_limit(model):
try:
yield None
finally:
# TODO... expose a synchronize??
mx.zeros((1,)).item()
mx.synchronize()
mx.metal.set_wired_limit(old_limit)