2 writes to ElemType
Microsoft.ML.OnnxTransformer (2)
src\Microsoft.ML.OnnxConverter\OnnxMl.cs (2)
4904
ElemType
= other.ElemType;
4930
ElemType
= input.ReadInt32();
18 references to ElemType
Microsoft.ML.OnnxTransformer (18)
OnnxTypeParser.cs (8)
85
return GetNativeScalarType(typeProto.TensorType.
ElemType
);
90
Type elementType = GetNativeScalarType(typeProto.TensorType.
ElemType
);
230
return GetScalarDataViewType(typeProto.TensorType.
ElemType
);
236
return GetScalarDataViewType(typeProto.TensorType.
ElemType
);
239
return new VectorDataViewType((PrimitiveDataViewType)GetScalarDataViewType(typeProto.TensorType.
ElemType
), shape.ToArray());
242
return new VectorDataViewType((PrimitiveDataViewType)GetScalarDataViewType(typeProto.TensorType.
ElemType
), 0);
299
var type = GetScalarDataViewType(typeProto.TensorType.
ElemType
).RawType;
320
var type = GetScalarDataViewType(typeProto.TensorType.
ElemType
).RawType;
src\Microsoft.ML.OnnxConverter\OnnxMl.cs (10)
4833
if (
ElemType
!= other.
ElemType
) return false;
4842
if (
ElemType
!= 0) hash ^=
ElemType
.GetHashCode();
4860
if (
ElemType
!= 0)
4863
output.WriteInt32(
ElemType
);
4880
if (
ElemType
!= 0)
4882
size += 1 + pb::CodedOutputStream.ComputeInt32Size(
ElemType
);
4902
if (other.
ElemType
!= 0)
4904
ElemType = other.
ElemType
;