(cache: DynamicCache)
| 696 | |
| 697 | @staticmethod |
| 698 | def _stack_cache_tensors(cache: DynamicCache) -> Tuple[torch.Tensor, torch.Tensor]: |
| 699 | return torch.stack(cache.key_cache), torch.stack(cache.value_cache) |
| 700 | |
| 701 | @staticmethod |
| 702 | def _placeholder_length(cache: DynamicCache) -> int: |
no outgoing calls
no test coverage detected