MCPcopy Create free account
hub / github.com/Cornell-RelaxML/qtip / reset

Method reset

model/cache_utils.py:1347–1351  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1345 return None
1346
1347 def reset(self):
1348 for layer_idx in range(len(self.key_cache)):
1349 # In-place ops prevent breaking the static address
1350 self.key_cache[layer_idx].zero_()
1351 self.value_cache[layer_idx].zero_()
1352
1353
1354class EncoderDecoderCache(Cache):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected