8 instantiations of TensorProto
Microsoft.ML.OnnxTransformer (8)
src\Microsoft.ML.OnnxConverter\OnnxMl.cs (8)
740
T = new global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
();
804
T = new global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
();
2747
private static readonly pb::MessageParser<TensorProto> _parser = new pb::MessageParser<TensorProto>(() => new
TensorProto
());
2795
return new
TensorProto
(this);
3820
Values = new global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
();
3828
Indices = new global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
();
3851
Values = new global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
();
3860
Indices = new global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
();
71 references to TensorProto
Microsoft.ML.OnnxTransformer (71)
OnnxTypeParser.cs (26)
28
var dataType = (OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataType)elementType;
32
case OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataType.Bool:
35
case OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataType.Int8:
38
case OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataType.Uint8:
41
case OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataType.Int16:
44
case OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataType.Uint16:
47
case OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataType.Int32:
50
case OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataType.Uint32:
53
case OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataType.Int64:
56
case OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataType.Uint64:
59
case OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataType.Double:
62
case OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataType.Float:
65
case OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataType.String:
116
var dataType = (OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataType)elementType;
120
case OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataType.Bool:
123
case OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataType.Int8:
126
case OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataType.Uint8:
129
case OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataType.Int16:
132
case OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataType.Uint16:
135
case OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataType.Int32:
138
case OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataType.Uint32:
141
case OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataType.Int64:
144
case OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataType.Uint64:
147
case OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataType.Float:
150
case OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataType.Double:
153
case OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataType.String:
OnnxUtils.cs (1)
267
foreach (
var
valueInfo in model.Graph.Initializer)
src\Microsoft.ML.OnnxConverter\OnnxMl.cs (44)
120
new pbr::GeneratedClrTypeInfo(typeof(global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
), global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
.Parser, new[]{ "Dims", "DataType", "Segment", "FloatData", "Int32Data", "StringData", "Int64Data", "Name", "DocString", "RawData", "ExternalData", "DataLocation", "DoubleData", "Uint64Data" }, null, new[]{ typeof(global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataType), typeof(global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataLocation) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
.Types.Segment), global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
.Types.Segment.Parser, new[]{ "Begin", "End" }, null, null, null, null)}),
380
private global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
t_;
385
public global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
T
470
private static readonly pb::FieldCodec<global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
> _repeated_tensors_codec
471
= pb::FieldCodec.ForMessage(82, global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
.Parser);
472
private readonly pbc::RepeatedField<global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
> tensors_ = new pbc::RepeatedField<global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
>();
477
public pbc::RepeatedField<global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
> Tensors
2445
private static readonly pb::FieldCodec<global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
> _repeated_initializer_codec
2446
= pb::FieldCodec.ForMessage(42, global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
.Parser);
2447
private readonly pbc::RepeatedField<global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
> initializer_ = new pbc::RepeatedField<global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
>();
2454
public pbc::RepeatedField<global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
> Initializer
2745
public sealed partial class TensorProto : pb::IMessage<
TensorProto
>
2747
private static readonly pb::MessageParser<
TensorProto
> _parser = new pb::MessageParser<
TensorProto
>(() => new TensorProto());
2750
public static pb::MessageParser<
TensorProto
> Parser { get { return _parser; } }
2773
public TensorProto(
TensorProto
other) : this()
2793
public
TensorProto
Clone()
2831
private global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
.Types.Segment segment_;
2833
public global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
.Types.Segment Segment
2999
private global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataLocation dataLocation_ = global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataLocation.Default;
3004
public global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataLocation DataLocation
3052
return Equals(other as
TensorProto
);
3056
public bool Equals(
TensorProto
other)
3098
if (DataLocation != global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataLocation.Default) hash ^= DataLocation.GetHashCode();
3150
if (DataLocation != global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataLocation.Default)
3191
if (DataLocation != global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataLocation.Default)
3205
public void MergeFrom(
TensorProto
other)
3220
Segment = new global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
.Types.Segment();
3241
if (other.DataLocation != global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataLocation.Default)
3276
Segment = new global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
.Types.Segment();
3338
DataLocation = (global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
.Types.DataLocation)input.ReadEnum();
3439
get { return global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
.Descriptor.NestedTypes[0]; }
3672
private global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
values_;
3678
public global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
Values
3689
private global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
indices_;
3703
public global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.
TensorProto
Indices