2 writes to ModelType
Microsoft.ML.Tokenizers (2)
SentencepieceModel.cs (2)
2255ModelType = other.ModelType; 2605ModelType = (global::Sentencepiece.TrainerSpec.Types.ModelType) input.ReadEnum();
9 references to ModelType
Microsoft.ML.Tokenizers (9)
Model\LlamaTokenizer.cs (1)
47if (modelProto.TrainerSpec.ModelType != TrainerSpec.Types.ModelType.Bpe)
Model\SentencePieceTokenizer.cs (2)
25_model = modelProto.TrainerSpec.ModelType switch 29_ => throw new ArgumentException($"The model type '{modelProto.TrainerSpec.ModelType}' is not supported.", nameof(modelProto))
SentencepieceModel.cs (6)
1612if (ModelType != other.ModelType) return false; 1668if (HasModelType) hash ^= ModelType.GetHashCode(); 1924output.WriteEnum((int) ModelType); 2110size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ModelType); 2255ModelType = other.ModelType;