From 651540f5fc0529589867fc834f8c206c7e7a60c1 Mon Sep 17 00:00:00 2001 From: Isabella Gottardi Date: Thu, 13 Sep 2018 15:33:35 +0100 Subject: COMPMID-1451: Cleanup reference implementation Change-Id: Ibadc86a5b9eb8bdd670553256b83a0309cbed37f Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/148317 Reviewed-by: Georgios Pinitas Tested-by: bsgcomp --- tests/validation/reference/ActivationLayer.cpp | 2 +- tests/validation/reference/ActivationLayer.h | 5 +---- tests/validation/reference/BatchNormalizationLayer.h | 4 ---- tests/validation/reference/NormalizationLayer.cpp | 2 +- tests/validation/reference/NormalizationLayer.h | 2 +- tests/validation/reference/NormalizePlanarYUVLayer.cpp | 2 +- tests/validation/reference/NormalizePlanarYUVLayer.h | 2 +- tests/validation/reference/PoolingLayer.cpp | 2 +- tests/validation/reference/PoolingLayer.h | 5 +---- 9 files changed, 8 insertions(+), 18 deletions(-) (limited to 'tests') diff --git a/tests/validation/reference/ActivationLayer.cpp b/tests/validation/reference/ActivationLayer.cpp index 9750ea95a6..9887e42386 100644 --- a/tests/validation/reference/ActivationLayer.cpp +++ b/tests/validation/reference/ActivationLayer.cpp @@ -34,7 +34,7 @@ namespace validation { namespace reference { -template ::value, int>::type> +template SimpleTensor activation_layer(const SimpleTensor &src, ActivationLayerInfo info) { // Create reference diff --git a/tests/validation/reference/ActivationLayer.h b/tests/validation/reference/ActivationLayer.h index c752e74733..77b353056e 100644 --- a/tests/validation/reference/ActivationLayer.h +++ b/tests/validation/reference/ActivationLayer.h @@ -83,10 +83,7 @@ inline T activate_float(T x, T a, T b, ActivationLayerInfo::ActivationFunction a return ret; } -template ::value, int>::type = 0> -SimpleTensor activation_layer(const SimpleTensor &src, ActivationLayerInfo info); - -template ::value, int>::type = 0> +template SimpleTensor activation_layer(const SimpleTensor &src, ActivationLayerInfo info); } // namespace reference } // namespace validation diff --git a/tests/validation/reference/BatchNormalizationLayer.h b/tests/validation/reference/BatchNormalizationLayer.h index b45d820412..a5d99c162d 100644 --- a/tests/validation/reference/BatchNormalizationLayer.h +++ b/tests/validation/reference/BatchNormalizationLayer.h @@ -35,10 +35,6 @@ namespace validation { namespace reference { -template ::value, int>::type * = nullptr> -SimpleTensor batch_normalization_layer(const SimpleTensor &src, const SimpleTensor &mean, const SimpleTensor &var, const SimpleTensor &beta, const SimpleTensor &gamma, float epsilon, - ActivationLayerInfo act_info); - template ::value, int>::type * = nullptr> SimpleTensor batch_normalization_layer(const SimpleTensor &src, const SimpleTensor &mean, const SimpleTensor &var, const SimpleTensor &beta, const SimpleTensor &gamma, float epsilon, ActivationLayerInfo act_info); diff --git a/tests/validation/reference/NormalizationLayer.cpp b/tests/validation/reference/NormalizationLayer.cpp index 2ae68c63cf..e6ca233e75 100644 --- a/tests/validation/reference/NormalizationLayer.cpp +++ b/tests/validation/reference/NormalizationLayer.cpp @@ -33,7 +33,7 @@ namespace validation { namespace reference { -template ::value, int>::type> +template SimpleTensor normalization_layer(const SimpleTensor &src, NormalizationLayerInfo info) { // Create reference diff --git a/tests/validation/reference/NormalizationLayer.h b/tests/validation/reference/NormalizationLayer.h index 3448baf385..81b95cc18d 100644 --- a/tests/validation/reference/NormalizationLayer.h +++ b/tests/validation/reference/NormalizationLayer.h @@ -35,7 +35,7 @@ namespace validation { namespace reference { -template ::value, int>::type = 0> +template SimpleTensor normalization_layer(const SimpleTensor &src, NormalizationLayerInfo info); } // namespace reference diff --git a/tests/validation/reference/NormalizePlanarYUVLayer.cpp b/tests/validation/reference/NormalizePlanarYUVLayer.cpp index afb899220d..cdccaf49cd 100644 --- a/tests/validation/reference/NormalizePlanarYUVLayer.cpp +++ b/tests/validation/reference/NormalizePlanarYUVLayer.cpp @@ -34,7 +34,7 @@ namespace validation namespace reference { // NormalizePlanarYUV Layer for floating point type -template ::value, int>::type *> +template SimpleTensor normalize_planar_yuv_layer(const SimpleTensor &src, const SimpleTensor &mean, const SimpleTensor &std) { SimpleTensor result(src.shape(), src.data_type()); diff --git a/tests/validation/reference/NormalizePlanarYUVLayer.h b/tests/validation/reference/NormalizePlanarYUVLayer.h index 41ce48630c..95488f9122 100644 --- a/tests/validation/reference/NormalizePlanarYUVLayer.h +++ b/tests/validation/reference/NormalizePlanarYUVLayer.h @@ -35,7 +35,7 @@ namespace validation { namespace reference { -template ::value, int>::type * = nullptr> +template SimpleTensor normalize_planar_yuv_layer(const SimpleTensor &src, const SimpleTensor &mean, const SimpleTensor &std); } // namespace reference } // namespace validation diff --git a/tests/validation/reference/PoolingLayer.cpp b/tests/validation/reference/PoolingLayer.cpp index 02c430a64f..e617c939b0 100644 --- a/tests/validation/reference/PoolingLayer.cpp +++ b/tests/validation/reference/PoolingLayer.cpp @@ -37,7 +37,7 @@ namespace reference { using namespace arm_compute::misc::shape_calculator; -template ::value, int>::type> +template SimpleTensor pooling_layer(const SimpleTensor &src, const PoolingLayerInfo &info) { ARM_COMPUTE_ERROR_ON(info.is_global_pooling() && (src.shape().x() != src.shape().y())); diff --git a/tests/validation/reference/PoolingLayer.h b/tests/validation/reference/PoolingLayer.h index b0d30af32a..00977896a8 100644 --- a/tests/validation/reference/PoolingLayer.h +++ b/tests/validation/reference/PoolingLayer.h @@ -35,10 +35,7 @@ namespace validation { namespace reference { -template ::value, int>::type = 0> -SimpleTensor pooling_layer(const SimpleTensor &src, const PoolingLayerInfo &info); - -template ::value, int>::type = 0> +template SimpleTensor pooling_layer(const SimpleTensor &src, const PoolingLayerInfo &info); } // namespace reference } // namespace validation -- cgit v1.2.1