From b57be0da77370e5e71fe82dfa281f528279e8127 Mon Sep 17 00:00:00 2001 From: Michele Di Giorgio Date: Fri, 31 Aug 2018 16:26:25 +0100 Subject: COMPMID-1330: Add support for NormalizePlanarYUV operator in CL Change-Id: Id0754b9e2bc3ef7ff2c4c21c3b89709588c41bd3 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/146637 Tested-by: Jenkins Reviewed-by: Georgios Pinitas Reviewed-by: Giorgio Arena --- tests/validation/reference/NormalizePlanarYUVLayer.cpp | 10 +++++----- tests/validation/reference/NormalizePlanarYUVLayer.h | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/validation/reference') diff --git a/tests/validation/reference/NormalizePlanarYUVLayer.cpp b/tests/validation/reference/NormalizePlanarYUVLayer.cpp index 2442943bb4..afb899220d 100644 --- a/tests/validation/reference/NormalizePlanarYUVLayer.cpp +++ b/tests/validation/reference/NormalizePlanarYUVLayer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -35,7 +35,7 @@ namespace reference { // NormalizePlanarYUV Layer for floating point type template ::value, int>::type *> -SimpleTensor normalize_planar_yuv_layer(const SimpleTensor &src, const SimpleTensor &mean, const SimpleTensor &sd) +SimpleTensor normalize_planar_yuv_layer(const SimpleTensor &src, const SimpleTensor &mean, const SimpleTensor &std) { SimpleTensor result(src.shape(), src.data_type()); @@ -53,7 +53,7 @@ SimpleTensor normalize_planar_yuv_layer(const SimpleTensor &src, const Sim for(int l = 0; l < cols; ++l) { const int pos = l + k * cols + i * rows * cols + r * cols * rows * depth; - result[pos] = (src[pos] - mean[i]) / sd[i]; + result[pos] = (src[pos] - mean[i]) / std[i]; } } } @@ -61,8 +61,8 @@ SimpleTensor normalize_planar_yuv_layer(const SimpleTensor &src, const Sim return result; } -template SimpleTensor normalize_planar_yuv_layer(const SimpleTensor &src, const SimpleTensor &mean, const SimpleTensor &sd); - +template SimpleTensor normalize_planar_yuv_layer(const SimpleTensor &src, const SimpleTensor &mean, const SimpleTensor &std); +template SimpleTensor normalize_planar_yuv_layer(const SimpleTensor &src, const SimpleTensor &mean, const SimpleTensor &std); } // namespace reference } // namespace validation } // namespace test diff --git a/tests/validation/reference/NormalizePlanarYUVLayer.h b/tests/validation/reference/NormalizePlanarYUVLayer.h index c8740a383b..41ce48630c 100644 --- a/tests/validation/reference/NormalizePlanarYUVLayer.h +++ b/tests/validation/reference/NormalizePlanarYUVLayer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -36,7 +36,7 @@ namespace validation namespace reference { template ::value, int>::type * = nullptr> -SimpleTensor normalize_planar_yuv_layer(const SimpleTensor &src, const SimpleTensor &mean, const SimpleTensor &sd); +SimpleTensor normalize_planar_yuv_layer(const SimpleTensor &src, const SimpleTensor &mean, const SimpleTensor &std); } // namespace reference } // namespace validation } // namespace test -- cgit v1.2.1