mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2024-12-20 21:23:06 +00:00
whisper : zero-out the KV cache upon clear (#2445)
This commit is contained in:
parent
6e40108a59
commit
847f94fdeb
@ -1046,6 +1046,8 @@ static void whisper_kv_cache_clear(struct whisper_kv_cache & cache) {
|
||||
cache.cells[i].seq_id.clear();
|
||||
}
|
||||
cache.head = 0;
|
||||
|
||||
ggml_backend_buffer_clear(cache.buffer, 0);
|
||||
}
|
||||
|
||||
static void whisper_kv_cache_seq_rm(
|
||||
|
Loading…
Reference in New Issue
Block a user