mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-10-01 18:37:28 -05:00
llama : fix invalid assert in recurrent memory (#29799)
This commit is contained in:
@@ -731,8 +731,9 @@ bool llama_memory_recurrent::get_can_shift() const {
|
||||
}
|
||||
|
||||
bool llama_memory_recurrent::is_empty() const {
|
||||
assert(total_size() == 0);
|
||||
return ctxs_bufs.empty();
|
||||
const bool res = ctxs_bufs.empty();
|
||||
assert(!res || total_size() == 0);
|
||||
return res;
|
||||
}
|
||||
|
||||
size_t llama_memory_recurrent::total_size() const {
|
||||
|
||||
Reference in New Issue
Block a user