3 writes to TensorType
Microsoft.ML.OnnxTransformer (3)
src\Microsoft.ML.OnnxConverter\OnnxMl.cs (3)
4343
TensorType
= other.TensorType.Clone();
4627
TensorType
= new global::Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper.TypeProto.Types.Tensor();
4683
TensorType
= subBuilder;
23 references to TensorType
Microsoft.ML.OnnxTransformer (23)
OnnxTypeParser.cs (13)
83
if (typeProto.
TensorType
.Shape == null || typeProto.
TensorType
.Shape.Dim.Count == 0)
85
return GetNativeScalarType(typeProto.
TensorType
.ElemType);
90
Type elementType = GetNativeScalarType(typeProto.
TensorType
.ElemType);
227
if (typeProto.
TensorType
.Shape.Dim.Count == 0)
230
return GetScalarDataViewType(typeProto.
TensorType
.ElemType);
233
var shape = GetTensorDims(typeProto.
TensorType
.Shape);
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);
292
var shape = GetTensorDims(typeProto.
TensorType
.Shape);
299
var type = GetScalarDataViewType(typeProto.
TensorType
.ElemType).RawType;
320
var type = GetScalarDataViewType(typeProto.
TensorType
.ElemType).RawType;
src\Microsoft.ML.OnnxConverter\OnnxMl.cs (10)
4343
TensorType = other.
TensorType
.Clone();
4503
if (!object.Equals(
TensorType
, other.
TensorType
)) return false;
4517
if (valueCase_ == ValueOneofCase.TensorType) hash ^=
TensorType
.GetHashCode();
4543
output.WriteMessage(
TensorType
);
4582
size += 1 + pb::CodedOutputStream.ComputeMessageSize(
TensorType
);
4625
if (
TensorType
== null)
4629
TensorType
.MergeFrom(other.
TensorType
);
4680
subBuilder.MergeFrom(
TensorType
);