(self)
| 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 | |
| 348 | def set_shape_desc_dtype(shape_desc: Any, dtype: torch.dtype) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected