MCPcopy Create free account
hub / github.com/LMCache/LMCache / __init__

Method __init__

lmcache/python_ops_fallback.py:334–345  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

332 )
333
334 def __init__(self) -> None:
335 self.kv_size: int = 0
336 self.nl: int = 0
337 self.nb: int = 0
338 self.bs: int = 0
339 self.nh: int = 0
340 self.hs: int = 0
341 self.element_size: int = 0
342 # 0 means "unset — fall back to tight stride"; any downstream
343 # consumer that needs exact addressing must check this.
344 self.block_stride_elems: int = 0
345 self.dtype: torch.dtype | None = None
346
347
348def set_shape_desc_dtype(shape_desc: Any, dtype: torch.dtype) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected