clang-tidy
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
c812ff2b8a
commit
fb14faf6b0
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ int main(int argc, char ** argv) {
|
||||||
|
|
||||||
// if we will use the cache for the full prompt without reaching the end of the cache, force
|
// if we will use the cache for the full prompt without reaching the end of the cache, force
|
||||||
// reevaluation of the last token token to recalculate the cached logits
|
// reevaluation of the last token token to recalculate the cached logits
|
||||||
if (embd_inp.size() && n_matching_session_tokens == embd_inp.size() &&
|
if (!embd_inp.empty() && n_matching_session_tokens == embd_inp.size() &&
|
||||||
session_tokens.size() > embd_inp.size()) {
|
session_tokens.size() > embd_inp.size()) {
|
||||||
session_tokens.resize(embd_inp.size() - 1);
|
session_tokens.resize(embd_inp.size() - 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue