Skip to content

Commit 895b0b0

Browse files
committed
Address review comments.
1 parent ef72f57 commit 895b0b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csharp/test/Microsoft.ML.OnnxRuntime.Tests/InferenceTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ private void CanRunInferenceOnAModel(GraphOptimizationLevel graphOptimizationLev
324324
Assert.Equal(typeof(float), outputMeta[outputName].ElementType);
325325
Assert.True(outputMeta[outputName].IsTensor);
326326
longShape = Array.ConvertAll<int, long>(outputMeta[outputName].Dimensions, d => d);
327-
byteSize = byteSize = longShape.Aggregate(1L, (a, b) => a * b) * sizeof(float);
327+
byteSize = longShape.Aggregate(1L, (a, b) => a * b) * sizeof(float);
328328
float[] outputBuffer = new float[expectedOutput.Length];
329329
pinnedOutputs.Add(FixedBufferOnnxValue.CreateFromMemory<float>(memInfo, outputBuffer,
330330
TensorElementType.Float, longShape, byteSize));

0 commit comments

Comments
 (0)