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