3 writes to MaxByteId
Microsoft.ML.Tokenizers (3)
Model\SentencePieceBpeModel.cs (1)
36
MaxByteId
= i;
Model\SentencePieceUnigramModel.cs (2)
66
MaxByteId
= i;
243
MaxByteId
= maxByteId;
9 references to MaxByteId
Microsoft.ML.Tokenizers (9)
Model\SentencePieceBaseModel.cs (6)
214
if (current <=
MaxByteId
&& ByteFallback)
232
if (current <=
MaxByteId
&& ByteFallback)
264
if (current <=
MaxByteId
&& ByteFallback)
443
if (current <=
MaxByteId
&& ByteFallback)
465
if (current <=
MaxByteId
&& ByteFallback)
541
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)
75
ByteCodeToIdOffset = _vocab.TryGetValue("<0x00>", out int id) ? id :
MaxByteId
;
237
ByteCodeToIdOffset = _vocab.TryGetValue("<0x00>", out int id) ? id :
MaxByteId
;