From e068199254e525176b2c1eaf8420b9ddac3d9011 Mon Sep 17 00:00:00 2001 From: Sheri Zhang Date: Tue, 14 Jul 2020 15:29:28 +0100 Subject: COMPMID-3576: Nightly failure: NEON/PoolingLayer/Float/FP16/MaxUnpooling S10 Extend NEPoolingLayer max pooling to extract indices for FP16 Signed-off-by: Sheri Zhang Change-Id: I5a7c754be353e4c2c5d0ab3794e9427408d0c4fa Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3580 Reviewed-by: Sang-Hoon Park Reviewed-by: Michele Di Giorgio Tested-by: Arm Jenkins Comments-Addressed: Arm Jenkins --- tests/validation/NEON/MaxUnpoolingLayer.cpp | 8 ++++---- tests/validation/reference/MaxUnpoolingLayer.cpp | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'tests/validation') diff --git a/tests/validation/NEON/MaxUnpoolingLayer.cpp b/tests/validation/NEON/MaxUnpoolingLayer.cpp index e44021d858..a33ec2885e 100644 --- a/tests/validation/NEON/MaxUnpoolingLayer.cpp +++ b/tests/validation/NEON/MaxUnpoolingLayer.cpp @@ -63,11 +63,11 @@ FIXTURE_DATA_TEST_CASE(MaxUnpooling, NEMaxUnpoolingLayerFixture, framewor TEST_SUITE_END() // FP32 #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC TEST_SUITE(FP16) -FIXTURE_DATA_TEST_CASE(MaxUnpooling, NEMaxUnpoolingLayerFixture, framework::DatasetMode::PRECOMMIT, combine(combine(datasets::SmallShapes(), combine(PoolingLayerIndicesDatasetFPSmall, - framework::dataset::make("DataType", DataType::F16))), - framework::dataset::make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }) +FIXTURE_DATA_TEST_CASE(MaxUnpooling, NEMaxUnpoolingLayerFixture, framework::DatasetMode::PRECOMMIT, combine(combine(datasets::SmallShapes(), combine(PoolingLayerIndicesDatasetFPSmall, + framework::dataset::make("DataType", DataType::F16))), + framework::dataset::make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }) - )) + )) { // Validate output validate(Accessor(_target), _reference); diff --git a/tests/validation/reference/MaxUnpoolingLayer.cpp b/tests/validation/reference/MaxUnpoolingLayer.cpp index 134f39726a..880018e99f 100644 --- a/tests/validation/reference/MaxUnpoolingLayer.cpp +++ b/tests/validation/reference/MaxUnpoolingLayer.cpp @@ -99,6 +99,9 @@ SimpleTensor max_unpooling_layer(const SimpleTensor &src, const PoolingLay template SimpleTensor max_unpooling_layer(const SimpleTensor &src, const PoolingLayerInfo &info, const QuantizationInfo &output_qinfo, SimpleTensor &indices, TensorShape output_shape, DataLayout data_layout); +template SimpleTensor max_unpooling_layer(const SimpleTensor &src, const PoolingLayerInfo &info, + const QuantizationInfo &output_qinfo, SimpleTensor &indices, + TensorShape output_shape, DataLayout data_layout); } // namespace reference } // namespace validation -- cgit v1.2.1