diff options
author | SiCongLi <sicong.li@arm.com> | 2021-12-22 11:22:40 +0000 |
---|---|---|
committer | SiCong Li <sicong.li@arm.com> | 2021-12-25 10:54:51 +0000 |
commit | c4270cf958e85e0c41590030e1f9e228493a5ba0 (patch) | |
tree | fe26e2724df1d9da12c8462a576688b93838bc79 /tests/validation/reference/PoolingLayer.cpp | |
parent | cb86956e1972be4b2ddbaacaa23a0d21185f8ccb (diff) | |
download | ComputeLibrary-c4270cf958e85e0c41590030e1f9e228493a5ba0.tar.gz |
Add tests for FP Cpu Pooling where pool region is completely outside the input
* Add floating point validation tests for this configuration
* Fix reference implementation to return -inf for this configuration
* Prohibit this config in Cl, as well as non-float cases in Cpu
* Direct this config to non-asm path
Resolves COMPMID-4998
Change-Id: If88025c51b14ea337aea2441c548f858e95e5819
Signed-off-by: SiCongLi <sicong.li@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/6857
Reviewed-by: Gunes Bayir <gunes.bayir@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/validation/reference/PoolingLayer.cpp')
-rw-r--r-- | tests/validation/reference/PoolingLayer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/validation/reference/PoolingLayer.cpp b/tests/validation/reference/PoolingLayer.cpp index 5f4edfe49c..9e671e3173 100644 --- a/tests/validation/reference/PoolingLayer.cpp +++ b/tests/validation/reference/PoolingLayer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2020 Arm Limited. + * Copyright (c) 2017-2021 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -88,7 +88,7 @@ SimpleTensor<T> pooling_layer_internal(const SimpleTensor<T> &src, const Pooling int hend = std::min(hstart + pool_size_y, h_src); wstart = std::max(wstart, 0); hstart = std::max(hstart, 0); - auto max_val = std::numeric_limits<ACC_T>::lowest(); + auto max_val = -std::numeric_limits<ACC_T>::infinity(); int max_index{ 0 }; for(int y = hstart; y < hend; ++y) { |