3 writes to MaxByteId
Microsoft.ML.Tokenizers (3)
Model\SentencePieceBpeModel.cs (1)
36
MaxByteId
= i;
Model\SentencePieceUnigramModel.cs (2)
61
MaxByteId
= i;
223
MaxByteId
= maxByteId;
9 references to MaxByteId
Microsoft.ML.Tokenizers (9)
Model\SentencePieceBaseModel.cs (6)
212
if (current <=
MaxByteId
&& ByteFallback)
230
if (current <=
MaxByteId
&& ByteFallback)
262
if (current <=
MaxByteId
&& ByteFallback)
437
if (current <=
MaxByteId
&& ByteFallback)
459
if (current <=
MaxByteId
&& ByteFallback)
535
if (current <=
MaxByteId
&& ByteFallback)
Model\SentencePieceBpeModel.cs (1)
40
ByteCodeToIdOffset = _vocab.TryGetValue("<0x00>", out (int Id, float Score, byte Type) value) ? value.Id :
MaxByteId
;
Model\SentencePieceUnigramModel.cs (2)
70
ByteCodeToIdOffset = _vocab.TryGetValue("<0x00>", out int id) ? id :
MaxByteId
;
217
ByteCodeToIdOffset = _vocab.TryGetValue("<0x00>", out int id) ? id :
MaxByteId
;