Bugfix: must zero all values in all slices (#343)
authorwr0112358 <wr0112358@gmail.com>
Wed, 14 Feb 2018 17:37:51 +0000 (18:37 +0100)
committerAnthony Barbier <Anthony.barbier@arm.com>
Wed, 14 Feb 2018 17:37:51 +0000 (17:37 +0000)
src/runtime/NEON/functions/NEDeconvolutionLayer.cpp

index 7bce8a6..61ffc77 100644 (file)
@@ -92,7 +92,7 @@ void NEDeconvolutionLayer::run()
     const int stride_x      = _info.stride().first;
     const int stride_y      = _info.stride().second;
 
-    std::fill_n(reinterpret_cast<float *>(_scaled_output.buffer()), _scaled_output.info()->tensor_shape().total_size(), 0.f);
+    std::fill_n(_scaled_output.buffer(), _scaled_output.info()->total_size(), 0);
 
     // scaled_output is the input for the forward convolution. We copy the input elements to scaled_output
     // and insert rows and columns with zeroes depending on the stride values.