From c1294faa1d60274aa14567338fc2a449c70c1801 Mon Sep 17 00:00:00 2001 From: Sanghoon Lee Date: Fri, 17 Nov 2017 11:47:41 +0000 Subject: COMPMID-494: Fixing values to const Change-Id: I21a4191b032df17611e01d20d89cc21e8eaf68fc Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/109605 Tested-by: BSG Visual Compute Jenkins server to access repositories on http://mpd-gerrit.cambridge.arm.com Reviewed-by: Anthony Barbier --- tests/validation/CPP/BatchNormalizationLayer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/validation/CPP/BatchNormalizationLayer.cpp') diff --git a/tests/validation/CPP/BatchNormalizationLayer.cpp b/tests/validation/CPP/BatchNormalizationLayer.cpp index 37e2d55bf1..e4446d1694 100644 --- a/tests/validation/CPP/BatchNormalizationLayer.cpp +++ b/tests/validation/CPP/BatchNormalizationLayer.cpp @@ -44,7 +44,7 @@ SimpleTensor batch_normalization_layer(const SimpleTensor &src, const Simp const auto cols = static_cast(src.shape()[0]); const auto rows = static_cast(src.shape()[1]); const auto depth = static_cast(src.shape()[2]); - int upper_dims = src.shape().total_size() / (cols * rows * depth); + const int upper_dims = src.shape().total_size() / (cols * rows * depth); for(int r = 0; r < upper_dims; ++r) { @@ -88,7 +88,7 @@ SimpleTensor batch_normalization_layer(const SimpleTensor &src, const Simp const auto cols = static_cast(src.shape()[0]); const auto rows = static_cast(src.shape()[1]); const auto depth = static_cast(src.shape()[2]); - int upper_dims = src.shape().total_size() / (cols * rows * depth); + const int upper_dims = src.shape().total_size() / (cols * rows * depth); for(int r = 0; r < upper_dims; ++r) { -- cgit v1.2.1