LLamaKvCacheViewSafeHandle
Namespace: LLama.Native
A safe handle for a LLamaKvCacheView
1 |
|
Inheritance Object → CriticalFinalizerObject → SafeHandle → SafeLLamaHandleBase → LLamaKvCacheViewSafeHandle
Implements IDisposable
Properties
IsInvalid
1 |
|
Property Value
IsClosed
1 |
|
Property Value
Constructors
LLamaKvCacheViewSafeHandle(SafeLLamaContextHandle, LLamaKvCacheView)
Initialize a LLamaKvCacheViewSafeHandle which will call llama_kv_cache_view_free
when disposed
1 |
|
Parameters
view
LLamaKvCacheView
Methods
Allocate(SafeLLamaContextHandle, Int32)
Allocate a new KV cache view which can be used to inspect the KV cache
1 |
|
Parameters
maxSequences
Int32
The maximum number of sequences visible in this view per cell
Returns
ReleaseHandle()
1 |
|
Returns
Update()
Update this view
1 |
|
GetView()
Get the raw KV cache view
1 |
|