diff options
author | morgolock <pablo.tello@arm.com> | 2020-04-03 16:57:46 +0100 |
---|---|---|
committer | Pablo Marquez <pablo.tello@arm.com> | 2020-05-05 09:36:00 +0000 |
commit | e383c35c336002ce15945ed48facd7d4ba715aa8 (patch) | |
tree | 70dd9d20ec48bf8f41d30a6bbcee957779de8fe0 /tests/validation/reference/PoolingLayer.h | |
parent | 6f7585b21a13f4792ef1a55ac943997491ba8aec (diff) | |
download | ComputeLibrary-e383c35c336002ce15945ed48facd7d4ba715aa8.tar.gz |
MLCE-166: Add support for extracting indices in NEPoolingLayer 2x2 NHWC
* Added support for pooling indices in NHWC Poolsize 2x2
Change-Id: Ib2a3468e794f58bbf2c03aba9f6b184b9d76b183
Signed-off-by: morgolock <pablo.tello@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/2997
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Manuel Bottini <manuel.bottini@arm.com>
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/validation/reference/PoolingLayer.h')
-rw-r--r-- | tests/validation/reference/PoolingLayer.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/validation/reference/PoolingLayer.h b/tests/validation/reference/PoolingLayer.h index 3ca7f28d5a..346f1c0c9f 100644 --- a/tests/validation/reference/PoolingLayer.h +++ b/tests/validation/reference/PoolingLayer.h @@ -36,9 +36,12 @@ namespace validation namespace reference { template <typename T, typename ACC_T = T, typename std::enable_if<is_floating_point<T>::value, int>::type = 0> -SimpleTensor<T> pooling_layer_internal(const SimpleTensor<T> &src, const PoolingLayerInfo &info, SimpleTensor<uint32_t> *indices); +SimpleTensor<T> pooling_layer_internal(const SimpleTensor<T> &src, const PoolingLayerInfo &info, SimpleTensor<uint32_t> *indices, DataLayout data_layout = DataLayout::NCHW); + template <typename T> -SimpleTensor<T> pooling_layer(const SimpleTensor<T> &src, const PoolingLayerInfo &info, const QuantizationInfo &output_qinfo, SimpleTensor<uint32_t> *indices); +SimpleTensor<T> pooling_layer(const SimpleTensor<T> &src, const PoolingLayerInfo &info, const QuantizationInfo &output_qinfo, SimpleTensor<uint32_t> *indices, + DataLayout data_layout = DataLayout::NCHW); + } // namespace reference } // namespace validation } // namespace test |