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