cache_desc
Applicability
Product |
Supported (Yes/No) |
|---|---|
Atlas 350 Accelerator Card |
No |
Yes |
|
Yes |
|
No |
|
No |
|
No |
Note: For the
Function Description
Obtains the KV cache description.
Prototype
1 2 | @property cache_desc() -> CacheDesc |
Parameters
None
Example
1 2 3 | ... kv_cache = kv_cache_manager.allocate_cache(cache_desc, cache_keys) print(kv_cache.cache_desc.num_tensors) |
Returns
In normal cases, the cache description of the KvCache type is returned.
Constraints
None
Parent topic: KvCache