aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/CPP
diff options
context:
space:
mode:
authorSanghoon Lee <sanghoon.lee@arm.com>2017-11-17 11:47:41 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commitc1294faa1d60274aa14567338fc2a449c70c1801 (patch)
tree684bbe751ab80a3fea065a44d3bb87804fe1c9b1 /tests/validation/CPP
parent41caa625231c24533a514606bbf2683f7d4964ad (diff)
downloadComputeLibrary-c1294faa1d60274aa14567338fc2a449c70c1801.tar.gz
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 <bsgcomp@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'tests/validation/CPP')
-rw-r--r--tests/validation/CPP/BatchNormalizationLayer.cpp4
1 files changed, 2 insertions, 2 deletions
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<T> batch_normalization_layer(const SimpleTensor<T> &src, const Simp
const auto cols = static_cast<int>(src.shape()[0]);
const auto rows = static_cast<int>(src.shape()[1]);
const auto depth = static_cast<int>(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<T> batch_normalization_layer(const SimpleTensor<T> &src, const Simp
const auto cols = static_cast<int>(src.shape()[0]);
const auto rows = static_cast<int>(src.shape()[1]);
const auto depth = static_cast<int>(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)
{