Struct representing KV-cache information.
More...
|
| | __init__ (self, CacheType cache_type=CacheType.Error, str name="", str layer_hash="", int size=0, int num_batches=0) |
| | from_cpp (cls, _cQbRuntime.CacheInfo _cache_info) |
| CacheType | cache_type (self) |
| str | name (self) |
| str | layer_hash (self) |
| int | size (self) |
| int | num_batches (self) |
| | cache_type (self, CacheType value) |
| | name (self, str value) |
| | layer_hash (self, str value) |
| | size (self, int value) |
| | num_batches (self, int value) |
Struct representing KV-cache information.
Definition at line 762 of file type.py.
◆ __init__()
| qbruntime.type.CacheInfo.__init__ |
( |
| self, |
|
|
CacheType | cache_type = CacheType.Error, |
|
|
str | name = "", |
|
|
str | layer_hash = "", |
|
|
int | size = 0, |
|
|
int | num_batches = 0 ) |
◆ from_cpp()
| qbruntime.type.CacheInfo.from_cpp |
( |
| cls, |
|
|
_cQbRuntime.CacheInfo | _cache_info ) |
◆ cache_type() [1/2]
| CacheType qbruntime.type.CacheInfo.cache_type |
( |
| self | ) |
|
◆ name() [1/2]
| str qbruntime.type.CacheInfo.name |
( |
| self | ) |
|
◆ layer_hash() [1/2]
| str qbruntime.type.CacheInfo.layer_hash |
( |
| self | ) |
|
◆ size() [1/2]
| int qbruntime.type.CacheInfo.size |
( |
| self | ) |
|
◆ num_batches() [1/2]
| int qbruntime.type.CacheInfo.num_batches |
( |
| self | ) |
|
◆ cache_type() [2/2]
| qbruntime.type.CacheInfo.cache_type |
( |
| self, |
|
|
CacheType | value ) |
◆ name() [2/2]
| qbruntime.type.CacheInfo.name |
( |
| self, |
|
|
str | value ) |
◆ layer_hash() [2/2]
| qbruntime.type.CacheInfo.layer_hash |
( |
| self, |
|
|
str | value ) |
◆ size() [2/2]
| qbruntime.type.CacheInfo.size |
( |
| self, |
|
|
int | value ) |
◆ num_batches() [2/2]
| qbruntime.type.CacheInfo.num_batches |
( |
| self, |
|
|
int | value ) |
◆ _cache_info
| qbruntime.type.CacheInfo._cache_info = _cQbRuntime.CacheInfo() |
|
protected |
The documentation for this class was generated from the following file: