MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / reset

Method reset

lightx2v/common/kvcache/base.py:50–51  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

48 if attn_start is None and local_end is None:
49 return self._k_buffer[layer_id]
50 return self._k_buffer[layer_id][attn_start:local_end]
51
52 def v_cache(self, layer_id: int, attn_start: int | None = None, local_end: int | None = None) -> torch.Tensor:
53 self._ensure_kv_buffer()
54 if attn_start is None and local_end is None:

Callers 2

_reset_poolsMethod · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected