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