20 instantiations of TensorProto
Microsoft.ML.OnnxConverter (20)
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();
OnnxUtils.cs (12)
392var tensor = new TensorProto(); 402var tensor = new TensorProto(); 416var tensor = new TensorProto(); 426var tensor = new TensorProto(); 440var tensor = new TensorProto(); 450var tensor = new TensorProto(); 464var tensor = new TensorProto(); 474var tensor = new TensorProto(); 488var tensor = new TensorProto(); 498var tensor = new TensorProto(); 512var tensor = new TensorProto(); 522var tensor = new TensorProto();
98 references to TensorProto
Microsoft.ML.OnnxConverter (98)
OnnxContextImpl.cs (2)
22private readonly List<OnnxCSharpToProtoWrapper.TensorProto> _initializers; 50_initializers = new List<OnnxCSharpToProtoWrapper.TensorProto>();
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
OnnxUtils.cs (52)
21private static TypeProto MakeType(TypeProto typeProto, TensorProto.Types.DataType dataType, 50private static ValueInfoProto MakeValue(ValueInfoProto value, string name, TensorProto.Types.DataType dataType, 73private static AttributeProto MakeAttribute(string key, TensorProto.Types.DataType value) 225private static TensorProto.Types.DataType ConvertToTensorProtoType(Type rawType) 227var dataType = TensorProto.Types.DataType.Undefined; 230dataType = TensorProto.Types.DataType.Bool; 232dataType = TensorProto.Types.DataType.String; 234dataType = TensorProto.Types.DataType.Int8; 236dataType = TensorProto.Types.DataType.Uint8; 238dataType = TensorProto.Types.DataType.Int16; 240dataType = TensorProto.Types.DataType.Uint16; 242dataType = TensorProto.Types.DataType.Int32; 244dataType = TensorProto.Types.DataType.Uint32; 246dataType = TensorProto.Types.DataType.Int64; 248dataType = TensorProto.Types.DataType.Uint64; 250dataType = TensorProto.Types.DataType.Float; 252dataType = TensorProto.Types.DataType.Double; 274public readonly TensorProto.Types.DataType DataType; 278public ModelArgs(string name, TensorProto.Types.DataType dataType, List<long> dims, List<bool> dimParams) 289List<ModelArgs> outputs, List<ModelArgs> intermediateValues, List<TensorProto> initializers) 390public static TensorProto MakeInt64(string name, long value) 392var tensor = new TensorProto(); 394tensor.DataType = (int)TensorProto.Types.DataType.Int64; 400public static TensorProto MakeInt64s(string name, IEnumerable<long> values, IEnumerable<long> dims = null) 402var tensor = new TensorProto(); 404tensor.DataType = (int)TensorProto.Types.DataType.Int64; 414public static TensorProto MakeInt32(string name, Type type, int value) 416var tensor = new TensorProto(); 424public static TensorProto MakeInt32s(string name, Type type, IEnumerable<int> values, IEnumerable<long> dims = null) 426var tensor = new TensorProto(); 438public static TensorProto MakeUInt(string name, bool isUint64, ulong value) 440var tensor = new TensorProto(); 448public static TensorProto MakeUInts(string name, bool isUint64, IEnumerable<ulong> values, IEnumerable<long> dims = null) 450var tensor = new TensorProto(); 462public static TensorProto MakeDouble(string name, double value) 464var tensor = new TensorProto(); 466tensor.DataType = (int)TensorProto.Types.DataType.Double; 472public static TensorProto MakeDoubles(string name, IEnumerable<double> values, IEnumerable<long> dims = null) 474var tensor = new TensorProto(); 476tensor.DataType = (int)TensorProto.Types.DataType.Double; 486public static TensorProto MakeFloat(string name, float value) 488var tensor = new TensorProto(); 490tensor.DataType = (int)TensorProto.Types.DataType.Float; 496public static TensorProto MakeFloats(string name, IEnumerable<float> values, IEnumerable<long> dims = null) 498var tensor = new TensorProto(); 500tensor.DataType = (int)TensorProto.Types.DataType.Float; 510public static TensorProto MakeString(string name, string value) 512var tensor = new TensorProto(); 514tensor.DataType = (int)TensorProto.Types.DataType.String; 520public static TensorProto MakeStrings(string name, IEnumerable<string> values, IEnumerable<long> dims = null) 522var tensor = new TensorProto(); 524tensor.DataType = (int)TensorProto.Types.DataType.String;