mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-29 18:26:37 +08:00
fix synch
This commit is contained in:
parent
131ccbe6df
commit
2822acc98a
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user