mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-30 02:53:41 +08:00
fix synch
This commit is contained in:
parent
131ccbe6df
commit
2822acc98a
@ -58,8 +58,7 @@ def wired_limit(model):
|
|||||||
try:
|
try:
|
||||||
yield None
|
yield None
|
||||||
finally:
|
finally:
|
||||||
# TODO... expose a synchronize??
|
mx.synchronize()
|
||||||
mx.zeros((1,)).item()
|
|
||||||
mx.metal.set_wired_limit(old_limit)
|
mx.metal.set_wired_limit(old_limit)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user