Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ reset
Method
reset
deepspeed/utils/static_cache.py:490–492 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
488
return
self._layers[layer_idx].get_mask_sizes(query_length)
489
490
def
reset(self):
491
for
layer in self._layers:
492
layer.reset()
493
494
def
__len__(self):
495
return
len(self._layers)
Callers
1
_generate_continuous
Method · 0.95
Calls
1
reset
Method · 0.45
Tested by
no test coverage detected