diff options
author | Gian Marco Iodice <gianmarco.iodice@arm.com> | 2017-09-05 13:51:21 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | bf17955e2bf36c635acbac7c3bb03fbbd7732671 (patch) | |
tree | 9032d87a13942d4b7a15b2db5e7570d79823c66f /tests/validation/fixtures/PoolingLayerFixture.h | |
parent | 583137cc60580023abfd9d05abf933e7e117e29f (diff) | |
download | ComputeLibrary-bf17955e2bf36c635acbac7c3bb03fbbd7732671.tar.gz |
COMPMID-522 - Added support for GlobalPooling in CLPoolingLayer and CLFlattening for 3D tensor
Change-Id: Ifc7db1e4d4af322a4dcbfeb3e132e5c326596872
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/86618
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'tests/validation/fixtures/PoolingLayerFixture.h')
-rw-r--r-- | tests/validation/fixtures/PoolingLayerFixture.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/validation/fixtures/PoolingLayerFixture.h b/tests/validation/fixtures/PoolingLayerFixture.h index 5ce4aa6755..775c4125fc 100644 --- a/tests/validation/fixtures/PoolingLayerFixture.h +++ b/tests/validation/fixtures/PoolingLayerFixture.h @@ -128,6 +128,17 @@ public: PoolingLayerValidationFixedPointFixture<TensorType, AccessorType, FunctionType, T>::setup(shape, pool_type, pool_size, pad_stride_info, data_type, 0); } }; + +template <typename TensorType, typename AccessorType, typename FunctionType, typename T> +class GlobalPoolingLayerValidationFixture : public PoolingLayerValidationFixedPointFixture<TensorType, AccessorType, FunctionType, T> +{ +public: + template <typename...> + void setup(TensorShape shape, PoolingType pool_type, DataType data_type) + { + PoolingLayerValidationFixedPointFixture<TensorType, AccessorType, FunctionType, T>::setup(shape, pool_type, shape.x(), PadStrideInfo(1, 1, 0, 0), data_type, 0); + } +}; } // namespace validation } // namespace test } // namespace arm_compute |