MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / set_write_position

Method set_write_position

deepspeed/utils/static_cache.py:240–241  ·  view source on GitHub ↗
(self, pos: torch.Tensor)

Source from the content-addressed store, hash-verified

238 return getattr(slot, name)
239
240 def set_write_position(self, pos: torch.Tensor):
241 self._write_position = pos # tracked for symmetry; GDN state is position-free
242
243 def get_seq_length(self) -> int:
244 return 0

Callers 2

set_write_positionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected