Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 1 | /* |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 2 | * Copyright (c) 2017-2019 ARM Limited. |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: MIT |
| 5 | * |
| 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
| 7 | * of this software and associated documentation files (the "Software"), to |
| 8 | * deal in the Software without restriction, including without limitation the |
| 9 | * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
| 10 | * sell copies of the Software, and to permit persons to whom the Software is |
| 11 | * furnished to do so, subject to the following conditions: |
| 12 | * |
| 13 | * The above copyright notice and this permission notice shall be included in all |
| 14 | * copies or substantial portions of the Software. |
| 15 | * |
| 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 22 | * SOFTWARE. |
| 23 | */ |
| 24 | #include "arm_compute/core/Types.h" |
| 25 | #include "arm_compute/runtime/NEON/functions/NEConvolution.h" |
| 26 | #include "arm_compute/runtime/Tensor.h" |
| 27 | #include "arm_compute/runtime/TensorAllocator.h" |
| 28 | #include "tests/NEON/Accessor.h" |
| 29 | #include "tests/PaddingCalculator.h" |
| 30 | #include "tests/datasets/BorderModeDataset.h" |
| 31 | #include "tests/datasets/ShapeDatasets.h" |
| 32 | #include "tests/framework/Asserts.h" |
| 33 | #include "tests/framework/Macros.h" |
| 34 | #include "tests/framework/datasets/Datasets.h" |
| 35 | #include "tests/validation/Validation.h" |
| 36 | #include "tests/validation/fixtures/ConvolutionFixture.h" |
| 37 | |
| 38 | namespace arm_compute |
| 39 | { |
| 40 | namespace test |
| 41 | { |
| 42 | namespace validation |
| 43 | { |
| 44 | namespace |
| 45 | { |
Georgios Pinitas | acacc32 | 2017-12-13 12:48:44 +0000 | [diff] [blame] | 46 | /** Tolerance value for comparing reference's output against implementation |
| 47 | * |
| 48 | * This is due to the fact that NEON target performs multiplication with reciprocal of scale, |
| 49 | * while reference performs direct division with scale. |
| 50 | */ |
| 51 | constexpr AbsoluteTolerance<uint8_t> tolerance_u8(1); |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 52 | constexpr AbsoluteTolerance<int16_t> tolerance_s16(1); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 53 | } // namespace |
| 54 | |
| 55 | TEST_SUITE(NEON) |
| 56 | TEST_SUITE(CustomConvolution) |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 57 | TEST_SUITE(Square3x3) |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 58 | |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 59 | DATA_TEST_CASE(Configuration, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), framework::dataset::make("DataType", { DataType::U8, DataType::S16 })), |
| 60 | datasets::BorderModes()), |
| 61 | framework::dataset::make("filter_size", { 3 })), |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 62 | shape, output_data_type, border_mode, filter_size) |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 63 | { |
| 64 | // Create tensors |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 65 | Tensor src = create_tensor<Tensor>(shape, DataType::U8); |
| 66 | Tensor dst = create_tensor<Tensor>(shape, output_data_type); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 67 | |
| 68 | // Create conv matrix |
Michalis Spyrou | 299fdd3 | 2019-05-01 13:03:59 +0100 | [diff] [blame] | 69 | std::array<int16_t, 9> conv = { 0 }; |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 70 | |
| 71 | ARM_COMPUTE_EXPECT(src.info()->is_resizable(), framework::LogLevel::ERRORS); |
| 72 | ARM_COMPUTE_EXPECT(dst.info()->is_resizable(), framework::LogLevel::ERRORS); |
| 73 | |
| 74 | // Create and configure function |
| 75 | NEConvolution3x3 convolution; |
Michalis Spyrou | 299fdd3 | 2019-05-01 13:03:59 +0100 | [diff] [blame] | 76 | convolution.configure(&src, &dst, conv.data(), 0, border_mode); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 77 | |
| 78 | // Validate valid region |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 79 | const ValidRegion dst_valid_region = shape_to_valid_region(shape, (border_mode == BorderMode::UNDEFINED), BorderSize(filter_size / 2)); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 80 | validate(dst.info()->valid_region(), dst_valid_region); |
| 81 | |
| 82 | // Validate padding |
| 83 | PaddingCalculator calculator(shape.x(), 8); |
| 84 | calculator.set_border_size(1); |
| 85 | calculator.set_border_mode(border_mode); |
| 86 | |
| 87 | const PaddingSize dst_padding = calculator.required_padding(); |
| 88 | |
| 89 | calculator.set_accessed_elements(16); |
| 90 | calculator.set_access_offset(-1); |
| 91 | |
| 92 | const PaddingSize src_padding = calculator.required_padding(); |
| 93 | |
| 94 | validate(src.info()->padding(), src_padding); |
| 95 | validate(dst.info()->padding(), dst_padding); |
| 96 | } |
| 97 | |
| 98 | template <typename T> |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 99 | using NEConvolutionFixture = ConvolutionSquareValidationFixture<Tensor, Accessor, NEConvolution3x3, T>; |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 100 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 101 | TEST_SUITE(U8) |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 102 | FIXTURE_DATA_TEST_CASE(RunLarge, NEConvolutionFixture<uint8_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 103 | framework::dataset::make("DataType", |
| 104 | DataType::U8)), |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 105 | datasets::BorderModes()), |
| 106 | framework::dataset::make("filter_size", { 3 }))) |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 107 | { |
| 108 | // Validate output |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 109 | validate(Accessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2)), tolerance_u8); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 110 | } |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 111 | TEST_SUITE_END() // U8 |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 112 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 113 | TEST_SUITE(S16) |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 114 | FIXTURE_DATA_TEST_CASE(RunLarge, NEConvolutionFixture<int16_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 115 | framework::dataset::make("DataType", |
| 116 | DataType::S16)), |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 117 | datasets::BorderModes()), |
| 118 | framework::dataset::make("filter_size", { 3 }))) |
| 119 | { |
| 120 | // Validate output |
| 121 | validate(Accessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2)), tolerance_s16); |
| 122 | } |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 123 | TEST_SUITE_END() // S16 |
| 124 | TEST_SUITE_END() // Square3x3 |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 125 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 126 | TEST_SUITE(Square5x5) |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 127 | DATA_TEST_CASE(Configuration, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), framework::dataset::make("DataType", { DataType::U8, DataType::S16 })), |
| 128 | datasets::BorderModes()), |
| 129 | framework::dataset::make("filter_size", { 5 })), |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 130 | shape, output_data_type, border_mode, filter_size) |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 131 | { |
| 132 | // Create tensors |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 133 | Tensor src = create_tensor<Tensor>(shape, DataType::U8); |
| 134 | Tensor dst = create_tensor<Tensor>(shape, output_data_type); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 135 | |
| 136 | // Create conv matrix |
Michalis Spyrou | 299fdd3 | 2019-05-01 13:03:59 +0100 | [diff] [blame] | 137 | std::array<int16_t, 25> conv = { 0 }; |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 138 | |
| 139 | ARM_COMPUTE_EXPECT(src.info()->is_resizable(), framework::LogLevel::ERRORS); |
| 140 | ARM_COMPUTE_EXPECT(dst.info()->is_resizable(), framework::LogLevel::ERRORS); |
| 141 | |
| 142 | // Create and configure function |
| 143 | NEConvolution5x5 convolution; |
Michalis Spyrou | 299fdd3 | 2019-05-01 13:03:59 +0100 | [diff] [blame] | 144 | convolution.configure(&src, &dst, conv.data(), 0, border_mode); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 145 | |
| 146 | // Validate valid region |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 147 | const ValidRegion dst_valid_region = shape_to_valid_region(shape, (border_mode == BorderMode::UNDEFINED), BorderSize(filter_size / 2)); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 148 | validate(dst.info()->valid_region(), dst_valid_region); |
| 149 | |
| 150 | // Validate padding |
| 151 | PaddingCalculator calculator(shape.x(), 8); |
| 152 | calculator.set_border_size(2); |
| 153 | calculator.set_border_mode(border_mode); |
| 154 | |
| 155 | const PaddingSize dst_padding = calculator.required_padding(); |
| 156 | |
| 157 | calculator.set_accessed_elements(16); |
| 158 | calculator.set_access_offset(-2); |
| 159 | |
| 160 | const PaddingSize src_padding = calculator.required_padding(); |
| 161 | |
| 162 | validate(src.info()->padding(), src_padding); |
| 163 | validate(dst.info()->padding(), dst_padding); |
| 164 | } |
| 165 | |
| 166 | template <typename T> |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 167 | using NEConvolutionFixture = ConvolutionSquareValidationFixture<Tensor, Accessor, NEConvolution5x5, T>; |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 168 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 169 | TEST_SUITE(U8) |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 170 | FIXTURE_DATA_TEST_CASE(RunLarge, NEConvolutionFixture<uint8_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 171 | framework::dataset::make("DataType", |
| 172 | DataType::U8)), |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 173 | datasets::BorderModes()), |
| 174 | framework::dataset::make("filter_size", { 5 }))) |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 175 | { |
| 176 | // Validate output |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 177 | validate(Accessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2)), tolerance_u8); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 178 | } |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 179 | TEST_SUITE_END() // U8 |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 180 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 181 | TEST_SUITE(S16) |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 182 | FIXTURE_DATA_TEST_CASE(RunLarge, NEConvolutionFixture<int16_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 183 | framework::dataset::make("DataType", |
| 184 | DataType::S16)), |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 185 | datasets::BorderModes()), |
| 186 | framework::dataset::make("filter_size", { 5 }))) |
| 187 | { |
| 188 | // Validate output |
| 189 | validate(Accessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2)), tolerance_s16); |
| 190 | } |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 191 | TEST_SUITE_END() // S16 |
| 192 | TEST_SUITE_END() // Square5x5 |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 193 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 194 | TEST_SUITE(Square7x7) |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 195 | DATA_TEST_CASE(Configuration, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), framework::dataset::make("DataType", { DataType::U8, DataType::S16 })), |
| 196 | datasets::BorderModes()), |
| 197 | framework::dataset::make("filter_size", { 7 })), |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 198 | shape, output_data_type, border_mode, filter_size) |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 199 | { |
| 200 | // Create tensors |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 201 | Tensor src = create_tensor<Tensor>(shape, DataType::U8); |
| 202 | Tensor dst = create_tensor<Tensor>(shape, output_data_type); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 203 | |
| 204 | // Create conv matrix |
Michalis Spyrou | 299fdd3 | 2019-05-01 13:03:59 +0100 | [diff] [blame] | 205 | std::array<int16_t, 49> conv = { 0 }; |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 206 | |
| 207 | ARM_COMPUTE_EXPECT(src.info()->is_resizable(), framework::LogLevel::ERRORS); |
| 208 | ARM_COMPUTE_EXPECT(dst.info()->is_resizable(), framework::LogLevel::ERRORS); |
| 209 | |
| 210 | // Create and configure function |
| 211 | NEConvolution7x7 convolution; |
Michalis Spyrou | 299fdd3 | 2019-05-01 13:03:59 +0100 | [diff] [blame] | 212 | convolution.configure(&src, &dst, conv.data(), 0, border_mode); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 213 | |
| 214 | // Validate valid region |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 215 | const ValidRegion dst_valid_region = shape_to_valid_region(shape, (border_mode == BorderMode::UNDEFINED), BorderSize(filter_size / 2)); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 216 | validate(dst.info()->valid_region(), dst_valid_region); |
| 217 | |
| 218 | // Validate padding |
| 219 | PaddingCalculator calculator(shape.x(), 8); |
| 220 | calculator.set_border_size(3); |
| 221 | calculator.set_border_mode(border_mode); |
| 222 | |
| 223 | const PaddingSize dst_padding = calculator.required_padding(); |
| 224 | |
| 225 | calculator.set_accessed_elements(16); |
| 226 | calculator.set_access_offset(-3); |
| 227 | |
| 228 | const PaddingSize src_padding = calculator.required_padding(); |
| 229 | |
| 230 | validate(src.info()->padding(), src_padding); |
| 231 | validate(dst.info()->padding(), dst_padding); |
| 232 | } |
| 233 | |
| 234 | template <typename T> |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 235 | using NEConvolutionFixture = ConvolutionSquareValidationFixture<Tensor, Accessor, NEConvolution7x7, T>; |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 236 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 237 | TEST_SUITE(U8) |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 238 | FIXTURE_DATA_TEST_CASE(RunLarge, NEConvolutionFixture<uint8_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 239 | framework::dataset::make("DataType", |
| 240 | DataType::U8)), |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 241 | datasets::BorderModes()), |
| 242 | framework::dataset::make("filter_size", { 7 }))) |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 243 | { |
| 244 | // Validate output |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 245 | validate(Accessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2)), tolerance_u8); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 246 | } |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 247 | TEST_SUITE_END() // U8 |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 248 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 249 | TEST_SUITE(S16) |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 250 | FIXTURE_DATA_TEST_CASE(RunLarge, NEConvolutionFixture<int16_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 251 | framework::dataset::make("DataType", |
| 252 | DataType::S16)), |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 253 | datasets::BorderModes()), |
| 254 | framework::dataset::make("filter_size", { 7 }))) |
| 255 | { |
| 256 | // Validate output |
| 257 | validate(Accessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2)), tolerance_s16); |
| 258 | } |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 259 | TEST_SUITE_END() // S16 |
| 260 | TEST_SUITE_END() // Square7x7 |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 261 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 262 | TEST_SUITE(Square9x9) |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 263 | DATA_TEST_CASE(Configuration, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), framework::dataset::make("DataType", { DataType::U8, DataType::S16 })), |
| 264 | datasets::BorderModes()), |
| 265 | framework::dataset::make("filter_size", { 9 })), |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 266 | shape, output_data_type, border_mode, filter_size) |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 267 | { |
| 268 | // Create tensors |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 269 | Tensor src = create_tensor<Tensor>(shape, DataType::U8); |
| 270 | Tensor dst = create_tensor<Tensor>(shape, output_data_type); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 271 | |
| 272 | // Create conv matrix |
Michalis Spyrou | 299fdd3 | 2019-05-01 13:03:59 +0100 | [diff] [blame] | 273 | std::array<int16_t, 81> conv = { 0 }; |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 274 | |
| 275 | ARM_COMPUTE_EXPECT(src.info()->is_resizable(), framework::LogLevel::ERRORS); |
| 276 | ARM_COMPUTE_EXPECT(dst.info()->is_resizable(), framework::LogLevel::ERRORS); |
| 277 | |
| 278 | // Create and configure function |
| 279 | NEConvolution9x9 convolution; |
Michalis Spyrou | 299fdd3 | 2019-05-01 13:03:59 +0100 | [diff] [blame] | 280 | convolution.configure(&src, &dst, conv.data(), 0, border_mode); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 281 | |
| 282 | // Validate valid region |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 283 | const ValidRegion dst_valid_region = shape_to_valid_region(shape, (border_mode == BorderMode::UNDEFINED), BorderSize(filter_size / 2)); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 284 | validate(dst.info()->valid_region(), dst_valid_region); |
| 285 | |
| 286 | // Validate padding |
| 287 | PaddingCalculator calculator(shape.x(), 8); |
| 288 | calculator.set_border_size(4); |
| 289 | calculator.set_border_mode(border_mode); |
| 290 | |
| 291 | const PaddingSize dst_padding = calculator.required_padding(); |
| 292 | |
| 293 | calculator.set_accessed_elements(16); |
| 294 | calculator.set_access_offset(-4); |
| 295 | |
| 296 | const PaddingSize src_padding = calculator.required_padding(); |
| 297 | |
| 298 | validate(src.info()->padding(), src_padding); |
| 299 | validate(dst.info()->padding(), dst_padding); |
| 300 | } |
| 301 | |
| 302 | template <typename T> |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 303 | using NEConvolutionFixture = ConvolutionSquareValidationFixture<Tensor, Accessor, NEConvolution9x9, T>; |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 304 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 305 | TEST_SUITE(U8) |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 306 | FIXTURE_DATA_TEST_CASE(RunLarge, NEConvolutionFixture<uint8_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 307 | framework::dataset::make("DataType", |
| 308 | DataType::U8)), |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 309 | datasets::BorderModes()), |
| 310 | framework::dataset::make("filter_size", { 9 }))) |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 311 | { |
| 312 | // Validate output |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 313 | validate(Accessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2)), tolerance_u8); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 314 | } |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 315 | TEST_SUITE_END() // U8 |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 316 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 317 | TEST_SUITE(S16) |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 318 | FIXTURE_DATA_TEST_CASE(RunLarge, NEConvolutionFixture<int16_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 319 | framework::dataset::make("DataType", |
| 320 | DataType::S16)), |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 321 | datasets::BorderModes()), |
| 322 | framework::dataset::make("filter_size", { 9 }))) |
| 323 | { |
| 324 | // Validate output |
| 325 | validate(Accessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2)), tolerance_s16); |
| 326 | } |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 327 | TEST_SUITE_END() // S16 |
| 328 | TEST_SUITE_END() // Square9x9 |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 329 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 330 | TEST_SUITE(Rectangle) |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 331 | DATA_TEST_CASE(Configuration, framework::DatasetMode::NIGHTLY, combine(combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), framework::dataset::make("DataType", |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 332 | { DataType::U8, DataType::S16 })), |
| 333 | datasets::BorderModes()), |
| 334 | framework::dataset::make("filter_width", { 3, 5, 7, 9 })), |
| 335 | framework::dataset::make("filter_height", { 3, 5, 7, 9 })), |
| 336 | shape, output_data_type, border_mode, filter_width, filter_height) |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 337 | { |
| 338 | // Create tensors |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 339 | Tensor src = create_tensor<Tensor>(shape, DataType::U8); |
| 340 | Tensor dst = create_tensor<Tensor>(shape, output_data_type); |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 341 | |
| 342 | // Create conv matrix |
Michalis Spyrou | 5ae9b69 | 2018-02-05 14:59:54 +0000 | [diff] [blame] | 343 | std::vector<int16_t> conv(filter_height * filter_width); |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 344 | |
| 345 | ARM_COMPUTE_EXPECT(src.info()->is_resizable(), framework::LogLevel::ERRORS); |
| 346 | ARM_COMPUTE_EXPECT(dst.info()->is_resizable(), framework::LogLevel::ERRORS); |
| 347 | |
| 348 | // Create and configure function |
| 349 | NEConvolutionRectangle convolution; |
Michalis Spyrou | 5ae9b69 | 2018-02-05 14:59:54 +0000 | [diff] [blame] | 350 | convolution.configure(&src, &dst, conv.data(), filter_width, filter_height, 1, border_mode); |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 351 | |
| 352 | // Validate valid region |
| 353 | const ValidRegion dst_valid_region = shape_to_valid_region(shape, (border_mode == BorderMode::UNDEFINED), BorderSize(filter_height / 2, filter_width / 2)); |
| 354 | validate(dst.info()->valid_region(), dst_valid_region); |
| 355 | |
| 356 | // Validate padding |
| 357 | PaddingCalculator calculator(shape.x(), 8); |
| 358 | calculator.set_border_size(filter_width / 2); |
| 359 | calculator.set_border_mode(border_mode); |
| 360 | |
| 361 | const PaddingSize dst_padding = calculator.required_padding(); |
| 362 | |
| 363 | calculator.set_accessed_elements(16); |
| 364 | calculator.set_access_offset(-(filter_width / 2)); |
| 365 | |
| 366 | const PaddingSize width_padding = calculator.required_padding(); |
| 367 | |
| 368 | calculator.set_border_size(filter_height / 2); |
| 369 | calculator.set_access_offset(-(filter_height / 2)); |
| 370 | const PaddingSize height_padding = calculator.required_padding(); |
| 371 | |
| 372 | validate(src.info()->padding(), width_padding, height_padding); |
| 373 | validate(dst.info()->padding(), dst_padding); |
| 374 | } |
| 375 | |
| 376 | template <typename T> |
| 377 | using NEConvolutionFixture = ConvolutionRectangleValidationFixture<Tensor, Accessor, NEConvolutionRectangle, T>; |
| 378 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 379 | TEST_SUITE(U8) |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 380 | FIXTURE_DATA_TEST_CASE(RunLarge, NEConvolutionFixture<uint8_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 381 | framework::dataset::make("DataType", |
| 382 | DataType::U8)), |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 383 | datasets::BorderModes()), |
| 384 | framework::dataset::make("filter_width", { 3, 5, 7, 9 })), |
| 385 | framework::dataset::make("filter_height", { 3, 5, 7, 9 }))) |
| 386 | { |
| 387 | // Validate output |
| 388 | validate(Accessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2)), tolerance_u8); |
| 389 | } |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 390 | TEST_SUITE_END() // U8 |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 391 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 392 | TEST_SUITE(S16) |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 393 | FIXTURE_DATA_TEST_CASE(RunLarge, NEConvolutionFixture<int16_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 394 | framework::dataset::make("DataType", |
| 395 | DataType::S16)), |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 396 | datasets::BorderModes()), |
| 397 | framework::dataset::make("filter_width", { 3, 5, 7, 9 })), |
| 398 | framework::dataset::make("filter_height", { 3, 5, 7, 9 }))) |
| 399 | { |
| 400 | // Validate output |
| 401 | validate(Accessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2)), tolerance_s16); |
| 402 | } |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 403 | TEST_SUITE_END() // S16 |
| 404 | TEST_SUITE_END() // Rectangle |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 405 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 406 | TEST_SUITE(Separable5x5) |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 407 | template <typename T> |
| 408 | using NEConvolutionFixture = ConvolutionSeparableValidationFixture<Tensor, Accessor, NEConvolution5x5, T>; |
| 409 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 410 | TEST_SUITE(U8) |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 411 | FIXTURE_DATA_TEST_CASE(RunLarge, NEConvolutionFixture<uint8_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 412 | framework::dataset::make("DataType", |
| 413 | DataType::U8)), |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 414 | datasets::BorderModes()), |
| 415 | framework::dataset::make("filter_size", { 5 }))) |
| 416 | { |
| 417 | // Validate output |
| 418 | validate(Accessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2)), tolerance_u8); |
| 419 | } |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 420 | TEST_SUITE_END() // U8 |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 421 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 422 | TEST_SUITE(S16) |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 423 | FIXTURE_DATA_TEST_CASE(RunLarge, NEConvolutionFixture<int16_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 424 | framework::dataset::make("DataType", |
| 425 | DataType::S16)), |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 426 | datasets::BorderModes()), |
| 427 | framework::dataset::make("filter_size", { 5 }))) |
| 428 | { |
| 429 | // Validate output |
| 430 | validate(Accessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2)), tolerance_s16); |
| 431 | } |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 432 | TEST_SUITE_END() // S16 |
| 433 | TEST_SUITE_END() // Separable5x5 |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 434 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 435 | TEST_SUITE(Separable7x7) |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 436 | template <typename T> |
| 437 | using NEConvolutionFixture = ConvolutionSeparableValidationFixture<Tensor, Accessor, NEConvolution7x7, T>; |
| 438 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 439 | TEST_SUITE(U8) |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 440 | FIXTURE_DATA_TEST_CASE(RunLarge, NEConvolutionFixture<uint8_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 441 | framework::dataset::make("DataType", |
| 442 | DataType::U8)), |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 443 | datasets::BorderModes()), |
| 444 | framework::dataset::make("filter_size", { 7 }))) |
| 445 | { |
| 446 | // Validate output |
| 447 | validate(Accessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2)), tolerance_u8); |
| 448 | } |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 449 | TEST_SUITE_END() // U8 |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 450 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 451 | TEST_SUITE(S16) |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 452 | FIXTURE_DATA_TEST_CASE(RunLarge, NEConvolutionFixture<int16_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 453 | framework::dataset::make("DataType", |
| 454 | DataType::S16)), |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 455 | datasets::BorderModes()), |
| 456 | framework::dataset::make("filter_size", { 7 }))) |
| 457 | { |
| 458 | // Validate output |
| 459 | validate(Accessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2)), tolerance_s16); |
| 460 | } |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 461 | TEST_SUITE_END() // S16 |
| 462 | TEST_SUITE_END() // Separable7x7 |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 463 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 464 | TEST_SUITE(Separable9x9) |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 465 | template <typename T> |
| 466 | using NEConvolutionFixture = ConvolutionSeparableValidationFixture<Tensor, Accessor, NEConvolution9x9, T>; |
| 467 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 468 | TEST_SUITE(U8) |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 469 | FIXTURE_DATA_TEST_CASE(RunLarge, NEConvolutionFixture<uint8_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 470 | framework::dataset::make("DataType", |
| 471 | DataType::U8)), |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 472 | datasets::BorderModes()), |
| 473 | framework::dataset::make("filter_size", { 9 }))) |
| 474 | { |
| 475 | // Validate output |
| 476 | validate(Accessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2)), tolerance_u8); |
| 477 | } |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 478 | TEST_SUITE_END() // U8 |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 479 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 480 | TEST_SUITE(S16) |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 481 | FIXTURE_DATA_TEST_CASE(RunLarge, NEConvolutionFixture<int16_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 482 | framework::dataset::make("DataType", |
| 483 | DataType::S16)), |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 484 | datasets::BorderModes()), |
| 485 | framework::dataset::make("filter_size", { 9 }))) |
| 486 | { |
| 487 | // Validate output |
| 488 | validate(Accessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2)), tolerance_s16); |
| 489 | } |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 490 | TEST_SUITE_END() // S16 |
| 491 | TEST_SUITE_END() // Separable9x9 |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 492 | |
Michalis Spyrou | aeebe4a | 2019-01-09 14:21:03 +0000 | [diff] [blame] | 493 | TEST_SUITE_END() // CustomConvolution |
| 494 | TEST_SUITE_END() // NEON |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 495 | } // namespace validation |
| 496 | } // namespace test |
| 497 | } // namespace arm_compute |