Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/executorch
/ reset
Method
reset
backends/mlx/llm/cache.py:537–540 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
535
return
self.max_cache_len
536
537
def
reset(self):
538
for
layer_cache in self.kv_cache:
539
layer_cache.k_cache.zero_()
540
layer_cache.v_cache.zero_()
Callers
15
__exit__
Method · 0.45
setUp
Method · 0.45
setUp
Method · 0.45
setUp
Method · 0.45
setUp
Method · 0.45
setUp
Method · 0.45
setUp
Method · 0.45
setUp
Method · 0.45
setUp
Method · 0.45
setUp
Method · 0.45
setUp
Method · 0.45
setUp
Method · 0.45
Calls
no outgoing calls
Tested by
15
setUp
Method · 0.36
setUp
Method · 0.36
setUp
Method · 0.36
setUp
Method · 0.36
setUp
Method · 0.36
setUp
Method · 0.36
setUp
Method · 0.36
setUp
Method · 0.36
setUp
Method · 0.36
setUp
Method · 0.36
setUp
Method · 0.36
setUp
Method · 0.36