aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/NEON/LaplacianReconstruct.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/validation/NEON/LaplacianReconstruct.cpp')
-rw-r--r--tests/validation/NEON/LaplacianReconstruct.cpp46
1 files changed, 2 insertions, 44 deletions
diff --git a/tests/validation/NEON/LaplacianReconstruct.cpp b/tests/validation/NEON/LaplacianReconstruct.cpp
index bc1151f700..e407ea0a22 100644
--- a/tests/validation/NEON/LaplacianReconstruct.cpp
+++ b/tests/validation/NEON/LaplacianReconstruct.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018 Arm Limited.
+ * Copyright (c) 2018-2020 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -20,7 +20,7 @@
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
-*/
+ */
#include "arm_compute/core/Types.h"
#include "arm_compute/runtime/NEON/functions/NELaplacianPyramid.h"
#include "arm_compute/runtime/NEON/functions/NELaplacianReconstruct.h"
@@ -68,48 +68,6 @@ TEST_SUITE(LaplacianReconstruct)
// *INDENT-OFF*
// clang-format off
-DATA_TEST_CASE(Configuration, framework::DatasetMode::ALL, combine(combine(
- concat(datasets::Medium2DShapes(), datasets::Large2DShapes()),
- datasets::BorderModes()),
- large_laplacian_reconstruct_levels),
- shape, border_mode, num_levels)
-{
- // Create pyramid info
- PyramidInfo pyramid_info(num_levels, SCALE_PYRAMID_HALF, shape, Format::S16);
- Pyramid dst_pyramid{};
- dst_pyramid.init(pyramid_info);
-
- // Create Tensors
- Tensor src = create_tensor<Tensor>(shape, DataType::U8);
-
- // The first two dimensions of the output tensor must match the first two
- // dimensions of the tensor in the last level of the pyramid
- TensorShape dst_shape(shape);
- dst_shape.set(0, dst_pyramid.get_pyramid_level(num_levels - 1)->info()->dimension(0));
- dst_shape.set(1, dst_pyramid.get_pyramid_level(num_levels - 1)->info()->dimension(1));
- Tensor dst = create_tensor<Tensor>(dst_shape, DataType::S16);
-
- // The dimensions of the reconstruct are the same as the src shape
- Tensor rec_dst = create_tensor<Tensor>(shape, DataType::U8);
-
- // Create and configure pyramid function
- NELaplacianPyramid laplacian_pyramid;
- laplacian_pyramid.configure(&src, &dst_pyramid, &dst, border_mode, 0);
-
- // Create and configure reconstruct function
- NELaplacianReconstruct laplacian_reconstruct;
- laplacian_reconstruct.configure(&dst_pyramid, &dst, &rec_dst, border_mode, 0);
-
- ARM_COMPUTE_EXPECT(src.info()->is_resizable(), framework::LogLevel::ERRORS);
- ARM_COMPUTE_EXPECT(dst.info()->is_resizable(), framework::LogLevel::ERRORS);
-
- for(size_t level = 0; level < pyramid_info.num_levels(); ++level)
- {
- ARM_COMPUTE_EXPECT(dst_pyramid.get_pyramid_level(level)->info()->is_resizable(), framework::LogLevel::ERRORS);
- }
-
- ARM_COMPUTE_EXPECT(rec_dst.info()->is_resizable(), framework::LogLevel::ERRORS);
-}
using NELaplacianReconstructFixture = LaplacianReconstructValidationFixture<Tensor, Accessor, NELaplacianReconstruct, NELaplacianPyramid, int16_t, uint8_t, Pyramid>;