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