mirror of
https://github.com/matrix-construct/construct
synced 2024-11-16 15:00:51 +01:00
ircd::gpt::vocab: Simplify UTF-8 length gauge.
This commit is contained in:
parent
43a02bb598
commit
782379aeb4
1 changed files with 2 additions and 2 deletions
|
@ -678,9 +678,9 @@ ircd::gpt::vocab::bpe_prepare(u8x16 (&out)[16][2],
|
|||
simd::strlen(in)
|
||||
};
|
||||
|
||||
const u32x16 cplen
|
||||
const u8x16 cplen
|
||||
(
|
||||
utf8::length(utf8::decode(in))
|
||||
utf8::length(in)
|
||||
);
|
||||
|
||||
u32x16 idx;
|
||||
|
|
Loading…
Reference in a new issue