From: wr0112358 Date: Wed, 14 Feb 2018 17:37:51 +0000 (+0100) Subject: Bugfix: must zero all values in all slices (#343) X-Git-Tag: submit/tizen/20180418.060816~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=adb2f538210329e2cb26876cdb97643fbca1d657;p=platform%2Fupstream%2Farmcl.git Bugfix: must zero all values in all slices (#343) --- diff --git a/src/runtime/NEON/functions/NEDeconvolutionLayer.cpp b/src/runtime/NEON/functions/NEDeconvolutionLayer.cpp index 7bce8a6b7..61ffc7770 100644 --- a/src/runtime/NEON/functions/NEDeconvolutionLayer.cpp +++ b/src/runtime/NEON/functions/NEDeconvolutionLayer.cpp @@ -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(_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.