mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-07-30 14:13:57 -04:00
cont : reset shift[i]
ggml-ci
This commit is contained in:
@@ -144,9 +144,10 @@ public:
|
|||||||
assert(pos[i] != -1);
|
assert(pos[i] != -1);
|
||||||
|
|
||||||
seq_pos_rm(i);
|
seq_pos_rm(i);
|
||||||
|
seq[i].reset();
|
||||||
|
|
||||||
pos[i] = -1;
|
pos[i] = -1;
|
||||||
seq[i].reset();
|
shift[i] = 0;
|
||||||
|
|
||||||
used.erase(i);
|
used.erase(i);
|
||||||
}
|
}
|
||||||
@@ -164,6 +165,7 @@ public:
|
|||||||
|
|
||||||
if (seq[i].none()) {
|
if (seq[i].none()) {
|
||||||
pos[i] = -1;
|
pos[i] = -1;
|
||||||
|
shift[i] = 0;
|
||||||
|
|
||||||
used.erase(i);
|
used.erase(i);
|
||||||
|
|
||||||
@@ -192,6 +194,7 @@ public:
|
|||||||
seq[i].reset();
|
seq[i].reset();
|
||||||
|
|
||||||
pos[i] = -1;
|
pos[i] = -1;
|
||||||
|
shift[i] = 0;
|
||||||
|
|
||||||
used.erase(i);
|
used.erase(i);
|
||||||
|
|
||||||
@@ -320,8 +323,6 @@ public:
|
|||||||
has_shift = true;
|
has_shift = true;
|
||||||
|
|
||||||
if (pos[i] < 0) {
|
if (pos[i] < 0) {
|
||||||
seq_pos_rm(i);
|
|
||||||
|
|
||||||
seq[i].reset();
|
seq[i].reset();
|
||||||
pos[i] = -1;
|
pos[i] = -1;
|
||||||
shift[i] = 0;
|
shift[i] = 0;
|
||||||
|
Reference in New Issue
Block a user