3 instantiations of AttributeProto
Microsoft.ML.OnnxConverter (3)
OnnxMl.cs (2)
205private static readonly pb::MessageParser<AttributeProto> _parser = new pb::MessageParser<AttributeProto>(() => new AttributeProto()); 255return new AttributeProto(this);
OnnxUtils.cs (1)
68var attribute = new AttributeProto();
58 references to AttributeProto
Microsoft.ML.OnnxConverter (58)
OnnxMl.cs (25)
113new pbr::GeneratedClrTypeInfo(typeof(global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.AttributeProto), global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.AttributeProto.Parser, new[]{ "Name", "RefAttrName", "DocString", "Type", "F", "I", "S", "T", "G", "SparseTensor", "Floats", "Ints", "Strings", "Tensors", "Graphs", "SparseTensors" }, null, new[]{ typeof(global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.AttributeProto.Types.AttributeType) }, null, null), 203public sealed partial class AttributeProto : pb::IMessage<AttributeProto> 205private static readonly pb::MessageParser<AttributeProto> _parser = new pb::MessageParser<AttributeProto>(() => new AttributeProto()); 208public static pb::MessageParser<AttributeProto> Parser { get { return _parser; } } 231public AttributeProto(AttributeProto other) : this() 253public AttributeProto Clone() 311private global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.AttributeProto.Types.AttributeType type_ = global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.AttributeProto.Types.AttributeType.Undefined; 321public global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.AttributeProto.Types.AttributeType Type 513return Equals(other as AttributeProto); 517public bool Equals(AttributeProto other) 553if (Type != global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.AttributeProto.Types.AttributeType.Undefined) hash ^= Type.GetHashCode(); 622if (Type != global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.AttributeProto.Types.AttributeType.Undefined) 660if (Type != global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.AttributeProto.Types.AttributeType.Undefined) 702public void MergeFrom(AttributeProto other) 720if (other.Type != global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.AttributeProto.Types.AttributeType.Undefined) 852Type = (global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.AttributeProto.Types.AttributeType)input.ReadEnum(); 1290private static readonly pb::FieldCodec<global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.AttributeProto> _repeated_attribute_codec 1291= pb::FieldCodec.ForMessage(42, global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.AttributeProto.Parser); 1292private readonly pbc::RepeatedField<global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.AttributeProto> attribute_ = new pbc::RepeatedField<global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.AttributeProto>(); 1297public pbc::RepeatedField<global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.AttributeProto> Attribute
OnnxUtils.cs (33)
64private static AttributeProto MakeAttribute(string key) 68var attribute = new AttributeProto(); 73private static AttributeProto MakeAttribute(string key, TensorProto.Types.DataType value) 75AttributeProto attribute = MakeAttribute(key); 76attribute.Type = AttributeProto.Types.AttributeType.Int; 81private static AttributeProto MakeAttribute(string key, double value) 83AttributeProto attribute = MakeAttribute(key); 84attribute.Type = AttributeProto.Types.AttributeType.Float; 89private static AttributeProto MakeAttribute(string key, IEnumerable<double> value) 93AttributeProto attribute = MakeAttribute(key); 94attribute.Type = AttributeProto.Types.AttributeType.Floats; 99private static AttributeProto MakeAttribute(string key, IEnumerable<float> value) 103AttributeProto attribute = MakeAttribute(key); 104attribute.Type = AttributeProto.Types.AttributeType.Floats; 109private static AttributeProto MakeAttribute(string key, long value) 111AttributeProto attribute = MakeAttribute(key); 112attribute.Type = AttributeProto.Types.AttributeType.Int; 117private static AttributeProto MakeAttribute(string key, IEnumerable<long> value) 121AttributeProto attribute = MakeAttribute(key); 122attribute.Type = AttributeProto.Types.AttributeType.Ints; 127private static AttributeProto MakeAttribute(string key, ByteString value) 129AttributeProto attribute = MakeAttribute(key); 130attribute.Type = AttributeProto.Types.AttributeType.String; 135private static AttributeProto MakeAttribute(string key, IEnumerable<ByteString> value) 139AttributeProto attribute = MakeAttribute(key); 140attribute.Type = AttributeProto.Types.AttributeType.Strings; 145private static AttributeProto MakeAttribute(string key, GraphProto value) 147AttributeProto attribute = MakeAttribute(key); 148attribute.Type = AttributeProto.Types.AttributeType.Graph; 153private static AttributeProto MakeAttribute(string key, IEnumerable<GraphProto> value) 157AttributeProto attribute = MakeAttribute(key); 158attribute.Type = AttributeProto.Types.AttributeType.Graphs; 163private static AttributeProto MakeAttribute(string key, bool value) => MakeAttribute(key, value ? 1 : 0);