2 instantiations of ModelProto
Microsoft.ML.Tokenizers (2)
SentencepieceModel.cs (2)
3878
private static readonly pb::MessageParser<ModelProto> _parser = new pb::MessageParser<ModelProto>(() => new
ModelProto
());
3921
return new
ModelProto
(this);
49 references to ModelProto
Microsoft.ML.Tokenizers (49)
Model\LlamaTokenizer.cs (3)
19
internal LlamaTokenizer(
ModelProto
modelProto, bool addBos, bool addEos, IReadOnlyDictionary<string, int>? addedTokens = null) : base(modelProto, addBos, addEos, addedTokens)
40
ModelProto
modelProto =
ModelProto
.Parser.ParseFrom(modelStream);
Model\SentencePieceTokenizer.cs (12)
39
internal SentencePieceTokenizer(
ModelProto
modelProto, bool addBos, bool addEos, IReadOnlyDictionary<string, int>? specialTokens = null) :
46
private SentencePieceTokenizer(
ModelProto
modelProto, IReadOnlyDictionary<string, int>? specialTokens)
54
if (piece.Type ==
ModelProto
.Types.SentencePiece.Types.Type.Byte)
345
if (type != (byte)
ModelProto
.Types.SentencePiece.Types.Type.Unused)
433
if (id.Type != (byte)
ModelProto
.Types.SentencePiece.Types.Type.Unused ||
694
if (type != (byte)
ModelProto
.Types.SentencePiece.Types.Type.Unused)
809
if (id.Type != (byte)
ModelProto
.Types.SentencePiece.Types.Type.Unused ||
1018
if (type != (byte)
ModelProto
.Types.SentencePiece.Types.Type.Unused)
1124
if (id.Type != (byte)
ModelProto
.Types.SentencePiece.Types.Type.Unused ||
1398
if (type != (byte)
ModelProto
.Types.SentencePiece.Types.Type.Unused)
1504
if (id.Type != (byte)
ModelProto
.Types.SentencePiece.Types.Type.Unused ||
2251
if (leftId.Type == (byte)
ModelProto
.Types.SentencePiece.Types.Type.Unused)
SentencepieceModel.cs (34)
104
new pbr::GeneratedClrTypeInfo(typeof(global::Sentencepiece.
ModelProto
), global::Sentencepiece.
ModelProto
.Parser, new[]{ "Pieces", "TrainerSpec", "NormalizerSpec", "SelfTestData", "DenormalizerSpec" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Sentencepiece.
ModelProto
.Types.SentencePiece), global::Sentencepiece.
ModelProto
.Types.SentencePiece.Parser, new[]{ "Piece", "Score", "Type" }, null, new[]{ typeof(global::Sentencepiece.
ModelProto
.Types.SentencePiece.Types.Type) }, null, null)})
3873
internal sealed partial class ModelProto : pb::IExtendableMessage<
ModelProto
>
3878
private static readonly pb::MessageParser<
ModelProto
> _parser = new pb::MessageParser<
ModelProto
>(() => new ModelProto());
3880
private pb::ExtensionSet<
ModelProto
> _extensions;
3881
private pb::ExtensionSet<
ModelProto
> _Extensions { get { return _extensions; } }
3884
public static pb::MessageParser<
ModelProto
> Parser { get { return _parser; } }
3908
public ModelProto(
ModelProto
other) : this() {
3920
public
ModelProto
Clone() {
3926
private static readonly pb::FieldCodec<global::Sentencepiece.
ModelProto
.Types.SentencePiece> _repeated_pieces_codec
3927
= pb::FieldCodec.ForMessage(10, global::Sentencepiece.
ModelProto
.Types.SentencePiece.Parser);
3928
private readonly pbc::RepeatedField<global::Sentencepiece.
ModelProto
.Types.SentencePiece> pieces_ = new pbc::RepeatedField<global::Sentencepiece.
ModelProto
.Types.SentencePiece>();
3934
public pbc::RepeatedField<global::Sentencepiece.
ModelProto
.Types.SentencePiece> Pieces {
4001
return Equals(other as
ModelProto
);
4006
public bool Equals(
ModelProto
other) {
4138
public void MergeFrom(
ModelProto
other) {
4271
public TValue GetExtension<TValue>(pb::Extension<
ModelProto
, TValue> extension) {
4274
public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<
ModelProto
, TValue> extension) {
4277
public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<
ModelProto
, TValue> extension) {
4280
public void SetExtension<TValue>(pb::Extension<
ModelProto
, TValue> extension, TValue value) {
4283
public bool HasExtension<TValue>(pb::Extension<
ModelProto
, TValue> extension) {
4286
public void ClearExtension<TValue>(pb::Extension<
ModelProto
, TValue> extension) {
4289
public void ClearExtension<TValue>(pb::RepeatedExtension<
ModelProto
, TValue> extension) {
4316
get { return global::Sentencepiece.
ModelProto
.Descriptor.NestedTypes[0]; }
4408
private readonly static global::Sentencepiece.
ModelProto
.Types.SentencePiece.Types.Type TypeDefaultValue = global::Sentencepiece.
ModelProto
.Types.SentencePiece.Types.Type.Normal;
4410
private global::Sentencepiece.
ModelProto
.Types.SentencePiece.Types.Type type_;
4413
public global::Sentencepiece.
ModelProto
.Types.SentencePiece.Types.Type Type {
4624
Type = (global::Sentencepiece.
ModelProto
.Types.SentencePiece.Types.Type) input.ReadEnum();