8 instantiations of TypeProto
Microsoft.ML.OnnxTransformer (8)
src\Microsoft.ML.OnnxConverter\OnnxMl.cs (8)
1109
Type = new global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
();
1140
Type = new global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
();
4311
private static readonly pb::MessageParser<TypeProto> _parser = new pb::MessageParser<TypeProto>(() => new
TypeProto
());
4365
return new
TypeProto
(this);
5087
ElemType = new global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
();
5109
ElemType = new global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
();
5292
ValueType = new global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
();
5319
ValueType = new global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
();
72 references to TypeProto
Microsoft.ML.OnnxTransformer (72)
OnnxTypeParser.cs (15)
23
/// This function is used when determining the corresponding <see cref="Type"/> of <see cref="OnnxCSharpToProtoWrapper.
TypeProto
"/>.
79
public static Type GetNativeType(OnnxCSharpToProtoWrapper.
TypeProto
typeProto)
81
if (typeProto.ValueCase == OnnxCSharpToProtoWrapper.
TypeProto
.ValueOneofCase.TensorType)
94
else if (typeProto.ValueCase == OnnxCSharpToProtoWrapper.
TypeProto
.ValueOneofCase.SequenceType)
100
else if (typeProto.ValueCase == OnnxCSharpToProtoWrapper.
TypeProto
.ValueOneofCase.MapType)
222
public static DataViewType GetDataViewType(OnnxCSharpToProtoWrapper.
TypeProto
typeProto)
225
if (typeProto.ValueCase == OnnxCSharpToProtoWrapper.
TypeProto
.ValueOneofCase.TensorType)
245
else if (typeProto.ValueCase == OnnxCSharpToProtoWrapper.
TypeProto
.ValueOneofCase.SequenceType)
247
var
elemTypeProto = typeProto.SequenceType.ElemType;
251
else if (typeProto.ValueCase == OnnxCSharpToProtoWrapper.
TypeProto
.ValueOneofCase.MapType)
262
/// Class which store casting functions used in <see cref="GetDataViewValueCasterAndResultedType(OnnxCSharpToProtoWrapper.
TypeProto
, out Type)"/>.
287
public static Func<NamedOnnxValue, object> GetDataViewValueCasterAndResultedType(OnnxCSharpToProtoWrapper.
TypeProto
typeProto, out Type resultedType)
290
if (typeProto.ValueCase == OnnxCSharpToProtoWrapper.
TypeProto
.ValueOneofCase.TensorType)
332
else if (typeProto.ValueCase == OnnxCSharpToProtoWrapper.
TypeProto
.ValueOneofCase.SequenceType)
359
else if (typeProto.ValueCase == OnnxCSharpToProtoWrapper.
TypeProto
.ValueOneofCase.MapType)
src\Microsoft.ML.OnnxConverter\OnnxMl.cs (57)
123
new pbr::GeneratedClrTypeInfo(typeof(global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
), global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Parser, new[]{ "TensorType", "SequenceType", "MapType", "SparseTensorType", "OpaqueType", "Denotation" }, new[]{ "Value" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Tensor), global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Tensor.Parser, new[]{ "ElemType", "Shape" }, null, null, null, null),
124
new pbr::GeneratedClrTypeInfo(typeof(global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Sequence), global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Sequence.Parser, new[]{ "ElemType" }, null, null, null, null),
125
new pbr::GeneratedClrTypeInfo(typeof(global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Map), global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Map.Parser, new[]{ "KeyType", "ValueType" }, null, null, null, null),
126
new pbr::GeneratedClrTypeInfo(typeof(global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.SparseTensor), global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.SparseTensor.Parser, new[]{ "ElemType", "Shape" }, null, null, null, null),
127
new pbr::GeneratedClrTypeInfo(typeof(global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Opaque), global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Opaque.Parser, new[]{ "Domain", "Name" }, null, null, null, null)}),
973
private global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
type_;
979
public global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
Type
4309
public sealed partial class TypeProto : pb::IMessage<
TypeProto
>
4311
private static readonly pb::MessageParser<
TypeProto
> _parser = new pb::MessageParser<
TypeProto
>(() => new TypeProto());
4314
public static pb::MessageParser<
TypeProto
> Parser { get { return _parser; } }
4337
public TypeProto(
TypeProto
other) : this()
4363
public
TypeProto
Clone()
4374
public global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Tensor TensorType
4376
get { return valueCase_ == ValueOneofCase.TensorType ? (global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Tensor)value_ : null; }
4390
public global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Sequence SequenceType
4392
get { return valueCase_ == ValueOneofCase.SequenceType ? (global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Sequence)value_ : null; }
4406
public global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Map MapType
4408
get { return valueCase_ == ValueOneofCase.MapType ? (global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Map)value_ : null; }
4419
public global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.SparseTensor SparseTensorType
4421
get { return valueCase_ == ValueOneofCase.SparseTensorType ? (global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.SparseTensor)value_ : null; }
4432
public global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Opaque OpaqueType
4434
get { return valueCase_ == ValueOneofCase.OpaqueType ? (global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Opaque)value_ : null; }
4489
return Equals(other as
TypeProto
);
4493
public bool Equals(
TypeProto
other)
4612
public void MergeFrom(
TypeProto
other)
4627
TensorType = new global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Tensor();
4634
SequenceType = new global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Sequence();
4641
MapType = new global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Map();
4648
SparseTensorType = new global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.SparseTensor();
4655
OpaqueType = new global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Opaque();
4677
global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Tensor subBuilder = new global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Tensor();
4688
global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Sequence subBuilder = new global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Sequence();
4699
global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Map subBuilder = new global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Map();
4715
global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Opaque subBuilder = new global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.Opaque();
4726
global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.SparseTensor subBuilder = new global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Types.SparseTensor();
4754
get { return global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Descriptor.NestedTypes[0]; }
4961
get { return global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Descriptor.NestedTypes[1]; }
4993
private global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
elemType_;
4999
public global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
ElemType
5133
get { return global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Descriptor.NestedTypes[2]; }
5184
private global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
valueType_;
5189
public global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
ValueType
5340
get { return global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Descriptor.NestedTypes[3]; }
5544
get { return global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TypeProto
.Descriptor.NestedTypes[4]; }