3 writes to DimValue
Microsoft.ML.OnnxTransformer (3)
src\Microsoft.ML.OnnxConverter\OnnxMl.cs (3)
4064DimValue = other.DimValue; 4257DimValue = other.DimValue; 4280DimValue = input.ReadInt64();
11 references to DimValue
Microsoft.ML.OnnxTransformer (11)
OnnxTypeParser.cs (4)
173if (dim.DimValue > int.MaxValue) 174throw Contracts.ExceptParamValue(dim.DimValue, nameof(dim), $"Dimension {dim} in ONNX tensor cannot exceed the maximum of 32-bit signed integer."); 176value = dim.DimValue > 0 ? (int)dim.DimValue : 0;
src\Microsoft.ML.OnnxConverter\OnnxMl.cs (7)
4064DimValue = other.DimValue; 4168if (DimValue != other.DimValue) return false; 4179if (valueCase_ == ValueOneofCase.DimValue) hash ^= DimValue.GetHashCode(); 4202output.WriteInt64(DimValue); 4226size += 1 + pb::CodedOutputStream.ComputeInt64Size(DimValue); 4257DimValue = other.DimValue;