mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-05 00:04:36 +00:00
llama : fix .base() compilation error on Windows
This commit is contained in:
parent
8fb57ac0fb
commit
17f6c1ef3b
@ -2574,7 +2574,7 @@ struct llama_rs_cache {
|
||||
std::vector<llama_rs_seq_node>::iterator remove_seq_node_from_cell(llama_rs_cell & rs_cell, std::vector<llama_rs_seq_node>::iterator node_iter) {
|
||||
GGML_ASSERT(&rs_cell >= cells.data() && &rs_cell < cells.data() + cells.size());
|
||||
// The iterator needs to point inside the correct vector
|
||||
GGML_ASSERT(node_iter.base() >= rs_cell.seq_nodes.data() && node_iter.base() < rs_cell.seq_nodes.data() + rs_cell.seq_nodes.size());
|
||||
GGML_ASSERT(&(*node_iter) >= rs_cell.seq_nodes.data() && &(*node_iter) < rs_cell.seq_nodes.data() + rs_cell.seq_nodes.size());
|
||||
if (node_iter != rs_cell.seq_nodes.end()) {
|
||||
// update the tree
|
||||
llama_rs_seq_node node = *node_iter;
|
||||
|
Loading…
Reference in New Issue
Block a user