Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 1 | /* |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +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/CL/functions/CLConvolution.h" |
| 26 | #include "arm_compute/runtime/Tensor.h" |
| 27 | #include "arm_compute/runtime/TensorAllocator.h" |
| 28 | #include "tests/CL/CLAccessor.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 | { |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 44 | TEST_SUITE(CL) |
| 45 | TEST_SUITE(CustomConvolution) |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 46 | TEST_SUITE(Square3x3) |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 47 | DATA_TEST_CASE(Configuration, framework::DatasetMode::NIGHTLY, combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataType", { DataType::U8, DataType::S16 })), |
| 48 | datasets::BorderModes()), |
| 49 | framework::dataset::make("filter_size", { 3 })), |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 50 | shape, output_data_type, border_mode, filter_size) |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 51 | { |
| 52 | // Create tensors |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 53 | CLTensor src = create_tensor<CLTensor>(shape, DataType::U8); |
| 54 | CLTensor dst = create_tensor<CLTensor>(shape, output_data_type); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 55 | |
| 56 | // Create conv matrix |
Michalis Spyrou | bcfd09a | 2019-05-01 13:03:59 +0100 | [diff] [blame] | 57 | std::array<int16_t, 9> conv = { 0 }; |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 58 | |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 59 | ARM_COMPUTE_EXPECT(src.info()->is_resizable(), framework::LogLevel::ERRORS); |
| 60 | ARM_COMPUTE_EXPECT(dst.info()->is_resizable(), framework::LogLevel::ERRORS); |
| 61 | |
| 62 | // Create and configure function |
| 63 | CLConvolution3x3 convolution; |
Michalis Spyrou | bcfd09a | 2019-05-01 13:03:59 +0100 | [diff] [blame] | 64 | convolution.configure(&src, &dst, conv.data(), 0, border_mode); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 65 | |
| 66 | // Validate valid region |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 67 | 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] | 68 | validate(dst.info()->valid_region(), dst_valid_region); |
| 69 | |
| 70 | // Validate padding |
| 71 | PaddingCalculator calculator(shape.x(), 8); |
| 72 | calculator.set_border_size(1); |
| 73 | calculator.set_border_mode(border_mode); |
| 74 | |
| 75 | const PaddingSize dst_padding = calculator.required_padding(); |
| 76 | |
| 77 | calculator.set_accessed_elements(16); |
| 78 | calculator.set_access_offset(-1); |
| 79 | |
| 80 | const PaddingSize src_padding = calculator.required_padding(); |
| 81 | |
| 82 | validate(src.info()->padding(), src_padding); |
| 83 | validate(dst.info()->padding(), dst_padding); |
| 84 | } |
| 85 | |
| 86 | template <typename T> |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 87 | using CLConvolutionFixture = ConvolutionSquareValidationFixture<CLTensor, CLAccessor, CLConvolution3x3, T>; |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 88 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 89 | TEST_SUITE(U8) |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 90 | FIXTURE_DATA_TEST_CASE(RunLarge, CLConvolutionFixture<uint8_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 91 | framework::dataset::make("DataType", |
| 92 | DataType::U8)), |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 93 | datasets::BorderModes()), |
| 94 | framework::dataset::make("filter_size", { 3 }))) |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 95 | { |
| 96 | // Validate output |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 97 | validate(CLAccessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2))); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 98 | } |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 99 | TEST_SUITE_END() // U8 |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 100 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 101 | TEST_SUITE(S16) |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 102 | FIXTURE_DATA_TEST_CASE(RunLarge, CLConvolutionFixture<int16_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 103 | framework::dataset::make("DataType", |
| 104 | DataType::S16)), |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 105 | datasets::BorderModes()), |
| 106 | framework::dataset::make("filter_size", { 3 }))) |
| 107 | { |
| 108 | // Validate output |
Georgios Pinitas | e9146ed | 2018-02-07 16:05:47 +0000 | [diff] [blame] | 109 | validate(CLAccessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2))); |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 110 | } |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 111 | TEST_SUITE_END() // S16 |
| 112 | TEST_SUITE_END() // Square 3x3 |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 113 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 114 | TEST_SUITE(Square5x5) |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 115 | DATA_TEST_CASE(Configuration, framework::DatasetMode::NIGHTLY, combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataType", { DataType::U8, DataType::S16 })), |
| 116 | datasets::BorderModes()), |
| 117 | framework::dataset::make("filter_size", { 5 })), |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 118 | shape, output_data_type, border_mode, filter_size) |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 119 | { |
| 120 | // Create tensors |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 121 | CLTensor src = create_tensor<CLTensor>(shape, DataType::U8); |
| 122 | CLTensor dst = create_tensor<CLTensor>(shape, output_data_type); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 123 | |
| 124 | // Create conv matrix |
Michalis Spyrou | bcfd09a | 2019-05-01 13:03:59 +0100 | [diff] [blame] | 125 | std::array<int16_t, 25> conv = { 0 }; |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 126 | |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 127 | ARM_COMPUTE_EXPECT(src.info()->is_resizable(), framework::LogLevel::ERRORS); |
| 128 | ARM_COMPUTE_EXPECT(dst.info()->is_resizable(), framework::LogLevel::ERRORS); |
| 129 | |
| 130 | // Create and configure function |
| 131 | CLConvolution5x5 convolution; |
Michalis Spyrou | bcfd09a | 2019-05-01 13:03:59 +0100 | [diff] [blame] | 132 | convolution.configure(&src, &dst, conv.data(), 0, border_mode); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 133 | |
| 134 | // Validate valid region |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 135 | 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] | 136 | validate(dst.info()->valid_region(), dst_valid_region); |
| 137 | |
| 138 | // Validate padding |
| 139 | PaddingCalculator calculator(shape.x(), 8); |
| 140 | calculator.set_border_size(2); |
| 141 | calculator.set_border_mode(border_mode); |
| 142 | |
| 143 | const PaddingSize dst_padding = calculator.required_padding(); |
| 144 | |
| 145 | calculator.set_accessed_elements(16); |
| 146 | calculator.set_access_offset(-2); |
| 147 | |
| 148 | const PaddingSize src_padding = calculator.required_padding(); |
| 149 | |
| 150 | validate(src.info()->padding(), src_padding); |
| 151 | validate(dst.info()->padding(), dst_padding); |
| 152 | } |
| 153 | |
| 154 | template <typename T> |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 155 | using CLConvolutionFixture = ConvolutionSquareValidationFixture<CLTensor, CLAccessor, CLConvolution5x5, T>; |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 156 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 157 | TEST_SUITE(U8) |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 158 | FIXTURE_DATA_TEST_CASE(RunLarge, CLConvolutionFixture<uint8_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 159 | framework::dataset::make("DataType", |
| 160 | DataType::U8)), |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 161 | datasets::BorderModes()), |
| 162 | framework::dataset::make("filter_size", { 5 }))) |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 163 | { |
| 164 | // Validate output |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 165 | validate(CLAccessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2))); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 166 | } |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 167 | TEST_SUITE_END() // U8 |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 168 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 169 | TEST_SUITE(S16) |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 170 | FIXTURE_DATA_TEST_CASE(RunLarge, CLConvolutionFixture<int16_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 171 | framework::dataset::make("DataType", |
| 172 | DataType::S16)), |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 173 | datasets::BorderModes()), |
| 174 | framework::dataset::make("filter_size", { 5 }))) |
| 175 | { |
| 176 | // Validate output |
Georgios Pinitas | e9146ed | 2018-02-07 16:05:47 +0000 | [diff] [blame] | 177 | validate(CLAccessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2))); |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 178 | } |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 179 | TEST_SUITE_END() // S16 |
| 180 | TEST_SUITE_END() // Square5x5 |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 181 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 182 | TEST_SUITE(Square7x7) |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 183 | DATA_TEST_CASE(Configuration, framework::DatasetMode::NIGHTLY, combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataType", { DataType::U8, DataType::S16 })), |
| 184 | datasets::BorderModes()), |
| 185 | framework::dataset::make("filter_size", { 7 })), |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 186 | shape, output_data_type, border_mode, filter_size) |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 187 | { |
| 188 | // Create tensors |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 189 | CLTensor src = create_tensor<CLTensor>(shape, DataType::U8); |
| 190 | CLTensor dst = create_tensor<CLTensor>(shape, output_data_type); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 191 | |
| 192 | // Create conv matrix |
Michalis Spyrou | bcfd09a | 2019-05-01 13:03:59 +0100 | [diff] [blame] | 193 | std::array<int16_t, 49> conv = { 0 }; |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 194 | |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 195 | ARM_COMPUTE_EXPECT(src.info()->is_resizable(), framework::LogLevel::ERRORS); |
| 196 | ARM_COMPUTE_EXPECT(dst.info()->is_resizable(), framework::LogLevel::ERRORS); |
| 197 | |
| 198 | // Create and configure function |
| 199 | CLConvolution7x7 convolution; |
Michalis Spyrou | bcfd09a | 2019-05-01 13:03:59 +0100 | [diff] [blame] | 200 | convolution.configure(&src, &dst, conv.data(), 0, border_mode); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 201 | |
| 202 | // Validate valid region |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 203 | 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] | 204 | validate(dst.info()->valid_region(), dst_valid_region); |
| 205 | |
| 206 | // Validate padding |
| 207 | PaddingCalculator calculator(shape.x(), 8); |
| 208 | calculator.set_border_size(3); |
| 209 | calculator.set_border_mode(border_mode); |
| 210 | |
| 211 | const PaddingSize dst_padding = calculator.required_padding(); |
| 212 | |
| 213 | calculator.set_accessed_elements(16); |
| 214 | calculator.set_access_offset(-3); |
| 215 | |
| 216 | const PaddingSize src_padding = calculator.required_padding(); |
| 217 | |
| 218 | validate(src.info()->padding(), src_padding); |
| 219 | validate(dst.info()->padding(), dst_padding); |
| 220 | } |
| 221 | |
| 222 | template <typename T> |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 223 | using CLConvolutionFixture = ConvolutionSquareValidationFixture<CLTensor, CLAccessor, CLConvolution7x7, T>; |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 224 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 225 | TEST_SUITE(U8) |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 226 | FIXTURE_DATA_TEST_CASE(RunLarge, CLConvolutionFixture<uint8_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 227 | framework::dataset::make("DataType", |
| 228 | DataType::U8)), |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 229 | datasets::BorderModes()), |
| 230 | framework::dataset::make("filter_size", { 7 }))) |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 231 | { |
| 232 | // Validate output |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 233 | validate(CLAccessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2))); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 234 | } |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 235 | TEST_SUITE_END() // U8 |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 236 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 237 | TEST_SUITE(S16) |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 238 | FIXTURE_DATA_TEST_CASE(RunLarge, CLConvolutionFixture<int16_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 239 | framework::dataset::make("DataType", |
| 240 | DataType::S16)), |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 241 | datasets::BorderModes()), |
| 242 | framework::dataset::make("filter_size", { 7 }))) |
| 243 | { |
| 244 | // Validate output |
Georgios Pinitas | e9146ed | 2018-02-07 16:05:47 +0000 | [diff] [blame] | 245 | validate(CLAccessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2))); |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 246 | } |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 247 | TEST_SUITE_END() // S16 |
| 248 | TEST_SUITE_END() // Square7x7 |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 249 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 250 | TEST_SUITE(Square9x9) |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 251 | DATA_TEST_CASE(Configuration, framework::DatasetMode::NIGHTLY, combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataType", { DataType::U8, DataType::S16 })), |
| 252 | datasets::BorderModes()), |
| 253 | framework::dataset::make("filter_size", { 9 })), |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 254 | shape, output_data_type, border_mode, filter_size) |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 255 | { |
| 256 | // Create tensors |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 257 | CLTensor src = create_tensor<CLTensor>(shape, DataType::U8); |
| 258 | CLTensor dst = create_tensor<CLTensor>(shape, output_data_type); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 259 | |
| 260 | // Create conv matrix |
Michalis Spyrou | bcfd09a | 2019-05-01 13:03:59 +0100 | [diff] [blame] | 261 | std::array<int16_t, 81> conv = { 0 }; |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 262 | |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 263 | ARM_COMPUTE_EXPECT(src.info()->is_resizable(), framework::LogLevel::ERRORS); |
| 264 | ARM_COMPUTE_EXPECT(dst.info()->is_resizable(), framework::LogLevel::ERRORS); |
| 265 | |
| 266 | // Create and configure function |
| 267 | CLConvolution9x9 convolution; |
Michalis Spyrou | bcfd09a | 2019-05-01 13:03:59 +0100 | [diff] [blame] | 268 | convolution.configure(&src, &dst, conv.data(), 0, border_mode); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 269 | |
| 270 | // Validate valid region |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 271 | 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] | 272 | validate(dst.info()->valid_region(), dst_valid_region); |
| 273 | |
| 274 | // Validate padding |
| 275 | PaddingCalculator calculator(shape.x(), 8); |
| 276 | calculator.set_border_size(4); |
| 277 | calculator.set_border_mode(border_mode); |
| 278 | |
| 279 | const PaddingSize dst_padding = calculator.required_padding(); |
| 280 | |
| 281 | calculator.set_accessed_elements(16); |
| 282 | calculator.set_access_offset(-4); |
| 283 | |
| 284 | const PaddingSize src_padding = calculator.required_padding(); |
| 285 | |
| 286 | validate(src.info()->padding(), src_padding); |
| 287 | validate(dst.info()->padding(), dst_padding); |
| 288 | } |
| 289 | |
| 290 | template <typename T> |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 291 | using CLConvolutionFixture = ConvolutionSquareValidationFixture<CLTensor, CLAccessor, CLConvolution9x9, T>; |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 292 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 293 | TEST_SUITE(U8) |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 294 | FIXTURE_DATA_TEST_CASE(RunLarge, CLConvolutionFixture<uint8_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 295 | framework::dataset::make("DataType", |
| 296 | DataType::U8)), |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 297 | datasets::BorderModes()), |
| 298 | framework::dataset::make("filter_size", { 9 }))) |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 299 | { |
| 300 | // Validate output |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 301 | validate(CLAccessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2))); |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 302 | } |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 303 | TEST_SUITE_END() // U8 |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 304 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 305 | TEST_SUITE(S16) |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 306 | FIXTURE_DATA_TEST_CASE(RunLarge, CLConvolutionFixture<int16_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 307 | framework::dataset::make("DataType", |
| 308 | DataType::S16)), |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 309 | datasets::BorderModes()), |
| 310 | framework::dataset::make("filter_size", { 9 }))) |
| 311 | { |
| 312 | // Validate output |
Georgios Pinitas | e9146ed | 2018-02-07 16:05:47 +0000 | [diff] [blame] | 313 | validate(CLAccessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2))); |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 314 | } |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 315 | TEST_SUITE_END() // S16 |
| 316 | TEST_SUITE_END() // Square9x9 |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 317 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 318 | TEST_SUITE(Rectangle) |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 319 | DATA_TEST_CASE(Configuration, framework::DatasetMode::NIGHTLY, combine(combine(combine(combine(datasets::SmallShapes(), framework::dataset::make("DataType", |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 320 | { DataType::U8, DataType::S16 })), |
| 321 | datasets::BorderModes()), |
| 322 | framework::dataset::make("filter_width", { 3, 5, 7, 9 })), |
| 323 | framework::dataset::make("filter_height", { 3, 5, 7, 9 })), |
| 324 | shape, output_data_type, border_mode, filter_width, filter_height) |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 325 | { |
| 326 | // Create tensors |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 327 | CLTensor src = create_tensor<CLTensor>(shape, DataType::U8); |
| 328 | CLTensor dst = create_tensor<CLTensor>(shape, output_data_type); |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 329 | |
| 330 | // Create conv matrix |
Michalis Spyrou | bcfd09a | 2019-05-01 13:03:59 +0100 | [diff] [blame] | 331 | std::vector<int16_t> conv(filter_width * filter_height); |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 332 | |
| 333 | ARM_COMPUTE_EXPECT(src.info()->is_resizable(), framework::LogLevel::ERRORS); |
| 334 | ARM_COMPUTE_EXPECT(dst.info()->is_resizable(), framework::LogLevel::ERRORS); |
| 335 | |
| 336 | // Create and configure function |
| 337 | CLConvolutionRectangle convolution; |
Michalis Spyrou | bcfd09a | 2019-05-01 13:03:59 +0100 | [diff] [blame] | 338 | 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] | 339 | |
| 340 | // Validate valid region |
| 341 | const ValidRegion dst_valid_region = shape_to_valid_region(shape, (border_mode == BorderMode::UNDEFINED), BorderSize(filter_height / 2, filter_width / 2)); |
| 342 | validate(dst.info()->valid_region(), dst_valid_region); |
| 343 | |
| 344 | // Validate padding |
| 345 | PaddingCalculator calculator(shape.x(), 8); |
| 346 | calculator.set_border_size(filter_width / 2); |
| 347 | calculator.set_border_mode(border_mode); |
| 348 | |
| 349 | const PaddingSize dst_padding = calculator.required_padding(); |
| 350 | |
| 351 | calculator.set_accessed_elements(16); |
| 352 | calculator.set_access_offset(-(filter_width / 2)); |
| 353 | |
| 354 | const PaddingSize width_padding = calculator.required_padding(); |
| 355 | |
| 356 | calculator.set_border_size(filter_height / 2); |
| 357 | calculator.set_access_offset(-(filter_height / 2)); |
| 358 | const PaddingSize height_padding = calculator.required_padding(); |
| 359 | |
| 360 | validate(src.info()->padding(), width_padding, height_padding); |
| 361 | validate(dst.info()->padding(), dst_padding); |
| 362 | } |
| 363 | |
| 364 | template <typename T> |
| 365 | using CLConvolutionFixture = ConvolutionRectangleValidationFixture<CLTensor, CLAccessor, CLConvolutionRectangle, T>; |
| 366 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 367 | TEST_SUITE(U8) |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 368 | FIXTURE_DATA_TEST_CASE(RunLarge, CLConvolutionFixture<uint8_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 369 | framework::dataset::make("DataType", |
| 370 | DataType::U8)), |
Sanghoon Lee | d7ba539 | 2017-12-13 11:28:50 +0000 | [diff] [blame] | 371 | datasets::BorderModes()), |
| 372 | framework::dataset::make("filter_width", { 3, 5, 7, 9 })), |
| 373 | framework::dataset::make("filter_height", { 3, 5, 7, 9 }))) |
| 374 | { |
| 375 | // Validate output |
| 376 | validate(CLAccessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2))); |
| 377 | } |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 378 | TEST_SUITE_END() // U8 |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 379 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 380 | TEST_SUITE(S16) |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 381 | FIXTURE_DATA_TEST_CASE(RunLarge, CLConvolutionFixture<int16_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 382 | framework::dataset::make("DataType", |
| 383 | DataType::S16)), |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 384 | datasets::BorderModes()), |
| 385 | framework::dataset::make("filter_width", { 3, 5, 7, 9 })), |
| 386 | framework::dataset::make("filter_height", { 3, 5, 7, 9 }))) |
| 387 | { |
| 388 | // Validate output |
Georgios Pinitas | e9146ed | 2018-02-07 16:05:47 +0000 | [diff] [blame] | 389 | validate(CLAccessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2))); |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 390 | } |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 391 | TEST_SUITE_END() // S16 |
| 392 | TEST_SUITE_END() // Rectangle |
Sanghoon Lee | 571b18a | 2017-12-22 16:20:11 +0000 | [diff] [blame] | 393 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 394 | TEST_SUITE(Separable5x5) |
Sanghoon Lee | 571b18a | 2017-12-22 16:20:11 +0000 | [diff] [blame] | 395 | template <typename T> |
| 396 | using CLConvolutionFixture = ConvolutionSeparableValidationFixture<CLTensor, CLAccessor, CLConvolution5x5, T>; |
| 397 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 398 | TEST_SUITE(U8) |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 399 | FIXTURE_DATA_TEST_CASE(RunLarge, CLConvolutionFixture<uint8_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 400 | framework::dataset::make("DataType", |
| 401 | DataType::U8)), |
Sanghoon Lee | 571b18a | 2017-12-22 16:20:11 +0000 | [diff] [blame] | 402 | datasets::BorderModes()), |
| 403 | framework::dataset::make("filter_size", { 5 }))) |
| 404 | { |
| 405 | // Validate output |
| 406 | validate(CLAccessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2))); |
| 407 | } |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 408 | TEST_SUITE_END() // U8 |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 409 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 410 | TEST_SUITE(S16) |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 411 | FIXTURE_DATA_TEST_CASE(RunLarge, CLConvolutionFixture<int16_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 412 | framework::dataset::make("DataType", |
| 413 | DataType::S16)), |
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 |
Georgios Pinitas | e9146ed | 2018-02-07 16:05:47 +0000 | [diff] [blame] | 418 | validate(CLAccessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2))); |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 419 | } |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 420 | TEST_SUITE_END() // S16 |
| 421 | TEST_SUITE_END() // Separable5x5 |
Sanghoon Lee | 571b18a | 2017-12-22 16:20:11 +0000 | [diff] [blame] | 422 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 423 | TEST_SUITE(Separable7x7) |
Sanghoon Lee | 571b18a | 2017-12-22 16:20:11 +0000 | [diff] [blame] | 424 | template <typename T> |
| 425 | using CLConvolutionFixture = ConvolutionSeparableValidationFixture<CLTensor, CLAccessor, CLConvolution7x7, T>; |
| 426 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 427 | TEST_SUITE(U8) |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 428 | FIXTURE_DATA_TEST_CASE(RunLarge, CLConvolutionFixture<uint8_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 429 | framework::dataset::make("DataType", |
| 430 | DataType::U8)), |
Sanghoon Lee | 571b18a | 2017-12-22 16:20:11 +0000 | [diff] [blame] | 431 | datasets::BorderModes()), |
| 432 | framework::dataset::make("filter_size", { 7 }))) |
| 433 | { |
| 434 | // Validate output |
| 435 | validate(CLAccessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2))); |
| 436 | } |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 437 | TEST_SUITE_END() // U8 |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 438 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 439 | TEST_SUITE(S16) |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 440 | FIXTURE_DATA_TEST_CASE(RunLarge, CLConvolutionFixture<int16_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 441 | framework::dataset::make("DataType", |
| 442 | DataType::S16)), |
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 |
Georgios Pinitas | e9146ed | 2018-02-07 16:05:47 +0000 | [diff] [blame] | 447 | validate(CLAccessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2))); |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 448 | } |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 449 | TEST_SUITE_END() // S16 |
| 450 | TEST_SUITE_END() // Separable7x7 |
Sanghoon Lee | 571b18a | 2017-12-22 16:20:11 +0000 | [diff] [blame] | 451 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 452 | TEST_SUITE(Separable9x9) |
Sanghoon Lee | 571b18a | 2017-12-22 16:20:11 +0000 | [diff] [blame] | 453 | template <typename T> |
| 454 | using CLConvolutionFixture = ConvolutionSeparableValidationFixture<CLTensor, CLAccessor, CLConvolution9x9, T>; |
| 455 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 456 | TEST_SUITE(U8) |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 457 | FIXTURE_DATA_TEST_CASE(RunLarge, CLConvolutionFixture<uint8_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 458 | framework::dataset::make("DataType", |
| 459 | DataType::U8)), |
Sanghoon Lee | 571b18a | 2017-12-22 16:20:11 +0000 | [diff] [blame] | 460 | datasets::BorderModes()), |
| 461 | framework::dataset::make("filter_size", { 9 }))) |
| 462 | { |
| 463 | // Validate output |
| 464 | validate(CLAccessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2))); |
| 465 | } |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 466 | TEST_SUITE_END() // U8 |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 467 | |
Sanghoon Lee | c0079e9 | 2018-01-29 17:28:49 +0000 | [diff] [blame] | 468 | TEST_SUITE(S16) |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 469 | FIXTURE_DATA_TEST_CASE(RunLarge, CLConvolutionFixture<int16_t>, framework::DatasetMode::NIGHTLY, combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), |
| 470 | framework::dataset::make("DataType", |
| 471 | DataType::S16)), |
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 |
Georgios Pinitas | e9146ed | 2018-02-07 16:05:47 +0000 | [diff] [blame] | 476 | validate(CLAccessor(_target), _reference, shape_to_valid_region(_reference.shape(), (_border_mode == BorderMode::UNDEFINED), BorderSize(_height / 2, _width / 2))); |
Sanghoon Lee | c8d2316 | 2018-01-12 16:19:10 +0000 | [diff] [blame] | 477 | } |
| 478 | TEST_SUITE_END() |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 479 | TEST_SUITE_END() // Separable9x9 |
Sanghoon Lee | 571b18a | 2017-12-22 16:20:11 +0000 | [diff] [blame] | 480 | |
Michalis Spyrou | 8094325 | 2019-01-10 17:19:50 +0000 | [diff] [blame] | 481 | TEST_SUITE_END() // Custom Convolution |
| 482 | TEST_SUITE_END() // CL |
Sanghoon Lee | c8a85ba | 2017-11-29 11:23:14 +0000 | [diff] [blame] | 483 | } // namespace validation |
| 484 | } // namespace test |
| 485 | } // namespace arm_compute |