aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/NEON/Remap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/validation/NEON/Remap.cpp')
-rw-r--r--tests/validation/NEON/Remap.cpp36
1 files changed, 1 insertions, 35 deletions
diff --git a/tests/validation/NEON/Remap.cpp b/tests/validation/NEON/Remap.cpp
index f8d7a250f9..1e69973238 100644
--- a/tests/validation/NEON/Remap.cpp
+++ b/tests/validation/NEON/Remap.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2018 Arm Limited.
+ * Copyright (c) 2017-2020 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -50,40 +50,6 @@ constexpr float tolerance_number = 0.f;
TEST_SUITE(NEON)
TEST_SUITE(Remap)
-DATA_TEST_CASE(Configuration, framework::DatasetMode::ALL, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), framework::dataset::make("InterpolationPolicy", { InterpolationPolicy::NEAREST_NEIGHBOR, InterpolationPolicy::BILINEAR })),
- framework::dataset::make("DataType", DataType::U8)),
- framework::dataset::make("BorderModes", { BorderMode::UNDEFINED, BorderMode::CONSTANT })),
- shape, policy, data_type, border_mode)
-{
- Tensor src = create_tensor<Tensor>(shape, data_type);
- Tensor map_x = create_tensor<Tensor>(shape, DataType::F32);
- Tensor map_y = create_tensor<Tensor>(shape, DataType::F32);
- Tensor dst = create_tensor<Tensor>(shape, data_type);
-
- ARM_COMPUTE_EXPECT(src.info()->is_resizable(), framework::LogLevel::ERRORS);
- ARM_COMPUTE_EXPECT(map_x.info()->is_resizable(), framework::LogLevel::ERRORS);
- ARM_COMPUTE_EXPECT(map_y.info()->is_resizable(), framework::LogLevel::ERRORS);
- ARM_COMPUTE_EXPECT(dst.info()->is_resizable(), framework::LogLevel::ERRORS);
-
- // Create and configure function
- NERemap remap;
- remap.configure(&src, &map_x, &map_y, &dst, policy, border_mode);
-
- // Validate valid region
- const ValidRegion dst_valid_region = shape_to_valid_region(shape);
- validate(dst.info()->valid_region(), dst_valid_region);
-
- // Validate padding
- const int total_right = ceil_to_multiple(shape[0], 16);
- const int access_right = total_right + (((total_right - shape[0]) == 0) ? 1 : 0);
-
- const PaddingSize read_padding(1, access_right - shape[0], 1, 1);
- validate(src.info()->padding(), read_padding);
-
- PaddingCalculator calculator(shape.x(), 16);
- validate(dst.info()->padding(), calculator.required_padding());
-}
-
template <typename T>
using NERemapFixture = RemapValidationFixture<Tensor, Accessor, NERemap, T>;