File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
csharp/test/Microsoft.ML.OnnxRuntime.Tests Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff 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 ) ) ;
You can’t perform that action at this time.
0 commit comments