mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix problem with n_tokens==0
This commit is contained in:
parent
ca9c9d5a9a
commit
854e1295cc
@ -15,7 +15,7 @@ std::pair<token_sequence, token_sequence::size_type> transformer_context_fastfor
|
||||
|
||||
// Handle the case when we have a shorter input than active context, requiring the last
|
||||
// token to be recomputed to get up-to-date logits
|
||||
if((npast == next_context.size()) && (next_context.size() < ctx.active_context.size())) {
|
||||
if((npast == next_context.size()) && (next_context.size() <= ctx.active_context.size())) {
|
||||
npast -= 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user