2 writes to MaxByteId
Microsoft.ML.Tokenizers (2)
Model\SentencePieceBpeModel.cs (1)
36
MaxByteId
= i;
Model\SentencePieceUnigramModel.cs (1)
50
MaxByteId
= i;
8 references to MaxByteId
Microsoft.ML.Tokenizers (8)
Model\SentencePieceBaseModel.cs (6)
229
if (current <=
MaxByteId
&& ByteFallback)
247
if (current <=
MaxByteId
&& ByteFallback)
279
if (current <=
MaxByteId
&& ByteFallback)
454
if (current <=
MaxByteId
&& ByteFallback)
476
if (current <=
MaxByteId
&& ByteFallback)
552
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 (1)
59
ByteCodeToIdOffset = _vocab.TryGetValue("<0x00>", out int id) ? id :
MaxByteId
;