MCPcopy 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
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45

Calls

no outgoing calls

Tested by 15

setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36