30 references to DataType
Microsoft.ML.OnnxConverter (30)
OnnxMl.cs (1)
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)}),
OnnxUtils.cs (29)
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) 350var dataType = ConvertToTensorProtoType(rawType); 394tensor.DataType = (int)TensorProto.Types.DataType.Int64; 404tensor.DataType = (int)TensorProto.Types.DataType.Int64; 466tensor.DataType = (int)TensorProto.Types.DataType.Double; 476tensor.DataType = (int)TensorProto.Types.DataType.Double; 490tensor.DataType = (int)TensorProto.Types.DataType.Float; 500tensor.DataType = (int)TensorProto.Types.DataType.Float; 514tensor.DataType = (int)TensorProto.Types.DataType.String; 524tensor.DataType = (int)TensorProto.Types.DataType.String;