1 write to _initializers
Microsoft.ML.OnnxConverter (1)
OnnxContextImpl.cs (1)
50_initializers = new List<OnnxCSharpToProtoWrapper.TensorProto>();
15 references to _initializers
Microsoft.ML.OnnxConverter (15)
OnnxContextImpl.cs (15)
297_initializers.Add(OnnxUtils.MakeInt32(name, typeof(bool), value ? 1 : 0)); 304_initializers.Add(OnnxUtils.MakeFloat(name, value)); 311_initializers.Add(OnnxUtils.MakeInt32(name, type, value)); 318_initializers.Add(OnnxUtils.MakeString(name, value)); 325_initializers.Add(OnnxUtils.MakeInt64(name, value)); 332_initializers.Add(OnnxUtils.MakeDouble(name, value)); 339_initializers.Add(OnnxUtils.MakeUInt(name, isUint64, value)); 350_initializers.Add(OnnxUtils.MakeInt32s(name, typeof(bool), values.Select(v => Convert.ToInt32(v)), dims)); 361_initializers.Add(OnnxUtils.MakeFloats(name, values, dims)); 372_initializers.Add(OnnxUtils.MakeInt32s(name, type, values, dims)); 383_initializers.Add(OnnxUtils.MakeStrings(name, values, dims)); 394_initializers.Add(OnnxUtils.MakeInt64s(name, values, dims)); 405_initializers.Add(OnnxUtils.MakeDoubles(name, values, dims)); 416_initializers.Add(OnnxUtils.MakeUInts(name, isUint64, values, dims)); 424=> OnnxUtils.MakeModel(_nodes, _producerName, _name, _domain, _producerVersion, _modelVersion, _opSetVersion, _inputs, _outputs, _intermediateValues, _initializers);