Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [diff] [blame] | 1 | /* |
Michele Di Giorgio | 9c70037 | 2020-01-08 11:33:44 +0000 | [diff] [blame] | 2 | * Copyright (c) 2017-2020 ARM Limited. |
Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [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/NEFullyConnectedLayer.h" |
| 26 | #include "arm_compute/runtime/Tensor.h" |
| 27 | #include "arm_compute/runtime/TensorAllocator.h" |
Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [diff] [blame] | 28 | #include "tests/NEON/Accessor.h" |
| 29 | #include "tests/PaddingCalculator.h" |
Moritz Pflanzer | a09de0c | 2017-09-01 20:41:12 +0100 | [diff] [blame] | 30 | #include "tests/datasets/FullyConnectedLayerDataset.h" |
| 31 | #include "tests/framework/Asserts.h" |
| 32 | #include "tests/framework/Macros.h" |
| 33 | #include "tests/framework/datasets/Datasets.h" |
| 34 | #include "tests/validation/Validation.h" |
| 35 | #include "tests/validation/fixtures/FullyConnectedLayerFixture.h" |
Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [diff] [blame] | 36 | |
| 37 | namespace arm_compute |
| 38 | { |
| 39 | namespace test |
| 40 | { |
| 41 | namespace validation |
| 42 | { |
| 43 | namespace |
| 44 | { |
| 45 | /** Tolerance for float operations */ |
Michele Di Giorgio | 419f33a | 2018-08-27 14:25:24 +0100 | [diff] [blame] | 46 | constexpr RelativeTolerance<float> rel_tolerance_f32(0.01f); /**< Relative tolerance value for comparing reference's output against implementation's output for DataType::F32 */ |
| 47 | constexpr AbsoluteTolerance<float> abs_tolerance_f32(0.001f); /**< Absolute tolerance value for comparing reference's output against implementation's output for DataType::F32 */ |
Ioan-Cristian Szabo | 5edbd1c | 2017-11-13 13:34:08 +0000 | [diff] [blame] | 48 | #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC |
Gian Marco Iodice | 35aea37 | 2018-08-24 14:30:36 +0100 | [diff] [blame] | 49 | const AbsoluteTolerance<float> abs_tolerance_f16(0.3f); /**< Absolute tolerance value for comparing reference's output against implementation's output for DataType::F16 */ |
| 50 | const RelativeTolerance<half_float::half> rel_tolerance_f16(half_float::half(0.2f)); /**< Relative tolerance value for comparing reference's output against implementation's output for DataType::F16 */ |
| 51 | constexpr float tolerance_num_f16 = 0.07f; /**< Tolerance number for FP16 */ |
| 52 | #endif /* __ARM_FEATURE_FP16_VECTOR_ARITHMETIC*/ |
Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [diff] [blame] | 53 | |
Giorgio Arena | a855af1 | 2018-07-16 17:20:38 +0100 | [diff] [blame] | 54 | /** Tolerance for quantized asymmetric operations */ |
| 55 | constexpr AbsoluteTolerance<uint8_t> tolerance_qasymm8(1); |
Michele Di Giorgio | 9c70037 | 2020-01-08 11:33:44 +0000 | [diff] [blame] | 56 | constexpr AbsoluteTolerance<int8_t> tolerance_qasymm8_signed(1); |
Giorgio Arena | a855af1 | 2018-07-16 17:20:38 +0100 | [diff] [blame] | 57 | |
Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [diff] [blame] | 58 | /** CNN data types */ |
| 59 | const auto CNNDataTypes = framework::dataset::make("DataType", |
| 60 | { |
Ioan-Cristian Szabo | 5edbd1c | 2017-11-13 13:34:08 +0000 | [diff] [blame] | 61 | #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC |
Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [diff] [blame] | 62 | DataType::F16, |
Ioan-Cristian Szabo | 5edbd1c | 2017-11-13 13:34:08 +0000 | [diff] [blame] | 63 | #endif /* __ARM_FEATURE_FP16_VECTOR_ARITHMETIC */ |
Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [diff] [blame] | 64 | DataType::F32, |
Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [diff] [blame] | 65 | }); |
| 66 | |
| 67 | const auto FullyConnectedParameters = combine(framework::dataset::make("TransposeWeights", { false, true }), framework::dataset::make("ReshapeWeights", { false, true })); |
Michele Di Giorgio | f29d1b7 | 2019-10-29 10:58:13 +0000 | [diff] [blame] | 68 | |
| 69 | const auto QuantizationData = framework::dataset::make("QuantizationInfo", |
| 70 | { |
| 71 | QuantizationInfo(1.f / 256.f, 10), |
| 72 | QuantizationInfo(1.1f, 10), |
| 73 | }); |
Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [diff] [blame] | 74 | } // namespace |
| 75 | |
| 76 | TEST_SUITE(NEON) |
| 77 | TEST_SUITE(FullyConnectedLayer) |
| 78 | |
Michalis Spyrou | 5c9f0c4 | 2019-01-16 14:48:48 +0000 | [diff] [blame] | 79 | DATA_TEST_CASE(Configuration, framework::DatasetMode::ALL, combine(combine(datasets::SmallFullyConnectedLayerDataset(), |
Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [diff] [blame] | 80 | FullyConnectedParameters), |
| 81 | CNNDataTypes), |
| 82 | src_shape, weights_shape, bias_shape, dst_shape, transpose_weights, reshape_weights, data_type) |
| 83 | { |
Giorgio Arena | a855af1 | 2018-07-16 17:20:38 +0100 | [diff] [blame] | 84 | const DataType bias_data_type = is_data_type_quantized_asymmetric(data_type) ? DataType::S32 : data_type; |
| 85 | const QuantizationInfo quantization_info = is_data_type_quantized_asymmetric(data_type) ? QuantizationInfo(2.f / 255.f, 127) : QuantizationInfo(); |
| 86 | |
Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [diff] [blame] | 87 | TensorShape ws(weights_shape); |
| 88 | |
| 89 | // Transpose weights if not done in the function |
| 90 | if(!reshape_weights || !transpose_weights) |
| 91 | { |
| 92 | const size_t shape_x = ws.x(); |
| 93 | ws.set(0, ws.y()); |
| 94 | ws.set(1, shape_x); |
Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [diff] [blame] | 95 | } |
| 96 | |
| 97 | // Create tensors |
Giorgio Arena | a855af1 | 2018-07-16 17:20:38 +0100 | [diff] [blame] | 98 | Tensor src = create_tensor<Tensor>(src_shape, data_type, 1, quantization_info); |
| 99 | Tensor weights = create_tensor<Tensor>(ws, data_type, 1, quantization_info); |
| 100 | Tensor bias = create_tensor<Tensor>(bias_shape, bias_data_type, 1, quantization_info); |
| 101 | Tensor dst = create_tensor<Tensor>(dst_shape, data_type, 1, quantization_info); |
Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [diff] [blame] | 102 | |
| 103 | ARM_COMPUTE_EXPECT(src.info()->is_resizable(), framework::LogLevel::ERRORS); |
| 104 | ARM_COMPUTE_EXPECT(weights.info()->is_resizable(), framework::LogLevel::ERRORS); |
| 105 | ARM_COMPUTE_EXPECT(bias.info()->is_resizable(), framework::LogLevel::ERRORS); |
| 106 | ARM_COMPUTE_EXPECT(dst.info()->is_resizable(), framework::LogLevel::ERRORS); |
| 107 | |
Georgios Pinitas | 7d66a8e | 2018-07-17 12:28:42 +0100 | [diff] [blame] | 108 | // Create Fully Connected layer info |
| 109 | FullyConnectedLayerInfo fc_info; |
| 110 | fc_info.transpose_weights = transpose_weights; |
| 111 | fc_info.are_weights_reshaped = !reshape_weights; |
| 112 | |
Giorgio Arena | a855af1 | 2018-07-16 17:20:38 +0100 | [diff] [blame] | 113 | const QuantizationInfo src_quantization_info = src.info()->quantization_info(); |
| 114 | const QuantizationInfo weights_quantization_info = weights.info()->quantization_info(); |
| 115 | |
Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [diff] [blame] | 116 | // Create and configure function. |
| 117 | NEFullyConnectedLayer fc; |
Georgios Pinitas | 7d66a8e | 2018-07-17 12:28:42 +0100 | [diff] [blame] | 118 | fc.configure(&src, &weights, &bias, &dst, fc_info); |
Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [diff] [blame] | 119 | |
| 120 | // Validate valid region |
| 121 | const ValidRegion dst_valid_region = shape_to_valid_region(dst_shape); |
| 122 | validate(dst.info()->valid_region(), dst_valid_region); |
Giorgio Arena | a855af1 | 2018-07-16 17:20:38 +0100 | [diff] [blame] | 123 | |
| 124 | // Validate QuantizationInfo |
| 125 | ARM_COMPUTE_EXPECT(src.info()->quantization_info() == src_quantization_info, framework::LogLevel::ERRORS); |
| 126 | ARM_COMPUTE_EXPECT(weights.info()->quantization_info() == weights_quantization_info, framework::LogLevel::ERRORS); |
Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [diff] [blame] | 127 | } |
| 128 | |
Ioan-Cristian Szabo | b4e3e1c | 2017-11-30 17:17:17 +0000 | [diff] [blame] | 129 | // *INDENT-OFF* |
| 130 | // clang-format off |
| 131 | DATA_TEST_CASE(Validate, framework::DatasetMode::ALL, zip(zip(zip(zip(zip(zip( |
| 132 | framework::dataset::make("InputInfo", { TensorInfo(TensorShape(9U, 5U, 7U, 3U), 1, DataType::F32), // Mismatching data types |
Ioan-Cristian Szabo | b4e3e1c | 2017-11-30 17:17:17 +0000 | [diff] [blame] | 133 | TensorInfo(TensorShape(8U, 4U, 6U, 4U), 1, DataType::F32), |
| 134 | TensorInfo(TensorShape(8U, 4U, 6U, 4U), 1, DataType::F32), |
| 135 | TensorInfo(TensorShape(9U, 5U, 7U, 3U), 1, DataType::F32), // Invalid weights dimensions |
| 136 | TensorInfo(TensorShape(9U, 5U, 7U, 3U), 1, DataType::F32), // Wrongly reshaped weights |
| 137 | TensorInfo(TensorShape(8U, 4U, 6U, 4U), 1, DataType::F32), |
| 138 | }), |
| 139 | framework::dataset::make("WeightsInfo",{ TensorInfo(TensorShape(315U, 271U), 1, DataType::F16), |
Ioan-Cristian Szabo | b4e3e1c | 2017-11-30 17:17:17 +0000 | [diff] [blame] | 140 | TensorInfo(TensorShape(192U, 192U), 1, DataType::F32), |
| 141 | TensorInfo(TensorShape(192U, 192U), 1, DataType::F32), |
| 142 | TensorInfo(TensorShape(217U, 315U), 1, DataType::F32), |
| 143 | TensorInfo(TensorShape(217U, 315U), 1, DataType::F32), |
| 144 | TensorInfo(TensorShape(192U, 192U), 1, DataType::F32), |
| 145 | })), |
| 146 | framework::dataset::make("BiasInfo",{ TensorInfo(TensorShape(271U), 1, DataType::F32), |
Ioan-Cristian Szabo | b4e3e1c | 2017-11-30 17:17:17 +0000 | [diff] [blame] | 147 | TensorInfo(TensorShape(192U), 1, DataType::F32), |
| 148 | TensorInfo(TensorShape(192U), 1, DataType::F32), |
| 149 | TensorInfo(TensorShape(271U), 1, DataType::F32), |
| 150 | TensorInfo(TensorShape(271U), 1, DataType::F32), |
| 151 | TensorInfo(TensorShape(192U), 1, DataType::F32), |
| 152 | })), |
| 153 | framework::dataset::make("OutputInfo",{ TensorInfo(TensorShape(271U, 3U), 1, DataType::F32), |
Ioan-Cristian Szabo | b4e3e1c | 2017-11-30 17:17:17 +0000 | [diff] [blame] | 154 | TensorInfo(TensorShape(192U, 4U), 1, DataType::F32), |
| 155 | TensorInfo(TensorShape(192U, 4U), 1, DataType::F32), |
| 156 | TensorInfo(TensorShape(271U, 3U), 1, DataType::F32), |
| 157 | TensorInfo(TensorShape(271U, 3U), 1, DataType::F32), |
| 158 | TensorInfo(TensorShape(192U, 4U), 1, DataType::F32), |
| 159 | })), |
Vidhya Sudhan Loganathan | 0fc2545 | 2018-06-18 14:40:56 +0100 | [diff] [blame] | 160 | framework::dataset::make("TransposeWeights",{ true, true, false, true, true, true })), |
| 161 | framework::dataset::make("ReshapedWeights",{ false, false, false, false, false , false})), |
| 162 | framework::dataset::make("Expected", { false, true, true, false, false, true })), |
Ioan-Cristian Szabo | b4e3e1c | 2017-11-30 17:17:17 +0000 | [diff] [blame] | 163 | input_info, weights_info, bias_info, output_info, transpose_weights, reshaped_weights, expected) |
| 164 | { |
Georgios Pinitas | 7d66a8e | 2018-07-17 12:28:42 +0100 | [diff] [blame] | 165 | // Create Fully Connected layer info |
| 166 | FullyConnectedLayerInfo fc_info; |
| 167 | fc_info.transpose_weights = transpose_weights; |
| 168 | fc_info.are_weights_reshaped = reshaped_weights; |
| 169 | |
| 170 | Status status = NEFullyConnectedLayer::validate(&input_info.clone()->set_is_resizable(false), &weights_info.clone()->set_is_resizable(false), &bias_info.clone()->set_is_resizable(false), &output_info.clone()->set_is_resizable(false), fc_info); |
Ioan-Cristian Szabo | b4e3e1c | 2017-11-30 17:17:17 +0000 | [diff] [blame] | 171 | ARM_COMPUTE_EXPECT(bool(status) == expected, framework::LogLevel::ERRORS); |
| 172 | } |
| 173 | // clang-format on |
| 174 | // *INDENT-ON* |
| 175 | |
Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [diff] [blame] | 176 | template <typename T> |
Giorgio Arena | a855af1 | 2018-07-16 17:20:38 +0100 | [diff] [blame] | 177 | using NEFullyConnectedLayerFixture = FullyConnectedLayerValidationFixture<Tensor, Accessor, NEFullyConnectedLayer, T>; |
Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [diff] [blame] | 178 | |
| 179 | TEST_SUITE(Float) |
Ioan-Cristian Szabo | 5edbd1c | 2017-11-13 13:34:08 +0000 | [diff] [blame] | 180 | #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC |
Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [diff] [blame] | 181 | TEST_SUITE(FP16) |
Georgios Pinitas | 583137c | 2017-08-31 18:12:42 +0100 | [diff] [blame] | 182 | FIXTURE_DATA_TEST_CASE(RunSmall, NEFullyConnectedLayerFixture<half>, framework::DatasetMode::PRECOMMIT, combine(combine(datasets::SmallFullyConnectedLayerDataset(), |
| 183 | FullyConnectedParameters), |
| 184 | framework::dataset::make("DataType", DataType::F16))) |
Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [diff] [blame] | 185 | { |
| 186 | // Validate output |
Gian Marco Iodice | 35aea37 | 2018-08-24 14:30:36 +0100 | [diff] [blame] | 187 | validate(Accessor(_target), _reference, rel_tolerance_f16, tolerance_num_f16, abs_tolerance_f16); |
Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [diff] [blame] | 188 | } |
Georgios Pinitas | 583137c | 2017-08-31 18:12:42 +0100 | [diff] [blame] | 189 | FIXTURE_DATA_TEST_CASE(RunLarge, NEFullyConnectedLayerFixture<half>, framework::DatasetMode::NIGHTLY, combine(combine(datasets::LargeFullyConnectedLayerDataset(), |
| 190 | FullyConnectedParameters), |
| 191 | framework::dataset::make("DataType", DataType::F16))) |
Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [diff] [blame] | 192 | { |
| 193 | // Validate output |
Gian Marco Iodice | 35aea37 | 2018-08-24 14:30:36 +0100 | [diff] [blame] | 194 | validate(Accessor(_target), _reference, rel_tolerance_f16, tolerance_num_f16, abs_tolerance_f16); |
Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [diff] [blame] | 195 | } |
| 196 | TEST_SUITE_END() |
Ioan-Cristian Szabo | 5edbd1c | 2017-11-13 13:34:08 +0000 | [diff] [blame] | 197 | #endif /* __ARM_FEATURE_FP16_VECTOR_ARITHMETIC */ |
Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [diff] [blame] | 198 | |
| 199 | TEST_SUITE(FP32) |
| 200 | FIXTURE_DATA_TEST_CASE(RunSmall, NEFullyConnectedLayerFixture<float>, framework::DatasetMode::PRECOMMIT, combine(combine(datasets::SmallFullyConnectedLayerDataset(), FullyConnectedParameters), |
| 201 | framework::dataset::make("DataType", DataType::F32))) |
| 202 | { |
| 203 | // Validate output |
Michele Di Giorgio | 419f33a | 2018-08-27 14:25:24 +0100 | [diff] [blame] | 204 | validate(Accessor(_target), _reference, rel_tolerance_f32, 0, abs_tolerance_f32); |
Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [diff] [blame] | 205 | } |
| 206 | FIXTURE_DATA_TEST_CASE(RunLarge, NEFullyConnectedLayerFixture<float>, framework::DatasetMode::NIGHTLY, combine(combine(datasets::LargeFullyConnectedLayerDataset(), FullyConnectedParameters), |
| 207 | framework::dataset::make("DataType", DataType::F32))) |
| 208 | { |
| 209 | // Validate output |
Michele Di Giorgio | 419f33a | 2018-08-27 14:25:24 +0100 | [diff] [blame] | 210 | validate(Accessor(_target), _reference, rel_tolerance_f32, 0, abs_tolerance_f32); |
Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [diff] [blame] | 211 | } |
| 212 | TEST_SUITE_END() |
| 213 | TEST_SUITE_END() |
| 214 | |
Giorgio Arena | a855af1 | 2018-07-16 17:20:38 +0100 | [diff] [blame] | 215 | template <typename T> |
| 216 | using NEFullyConnectedLayerQuantizedFixture = FullyConnectedLayerValidationQuantizedFixture<Tensor, Accessor, NEFullyConnectedLayer, T>; |
| 217 | |
| 218 | TEST_SUITE(Quantized) |
| 219 | TEST_SUITE(QASYMM8) |
| 220 | FIXTURE_DATA_TEST_CASE(RunSmall, NEFullyConnectedLayerQuantizedFixture<uint8_t>, framework::DatasetMode::PRECOMMIT, combine(combine( |
| 221 | combine(datasets::SmallFullyConnectedLayerDataset(), |
| 222 | FullyConnectedParameters), |
| 223 | framework::dataset::make("DataType", DataType::QASYMM8)), |
Michele Di Giorgio | f29d1b7 | 2019-10-29 10:58:13 +0000 | [diff] [blame] | 224 | QuantizationData)) |
Giorgio Arena | a855af1 | 2018-07-16 17:20:38 +0100 | [diff] [blame] | 225 | { |
| 226 | // Validate output |
| 227 | validate(Accessor(_target), _reference, tolerance_qasymm8); |
| 228 | } |
| 229 | FIXTURE_DATA_TEST_CASE(RunLarge, NEFullyConnectedLayerQuantizedFixture<uint8_t>, framework::DatasetMode::NIGHTLY, combine(combine( |
| 230 | combine(datasets::LargeFullyConnectedLayerDataset(), |
| 231 | FullyConnectedParameters), |
| 232 | framework::dataset::make("DataType", DataType::QASYMM8)), |
Michele Di Giorgio | f29d1b7 | 2019-10-29 10:58:13 +0000 | [diff] [blame] | 233 | QuantizationData)) |
Giorgio Arena | a855af1 | 2018-07-16 17:20:38 +0100 | [diff] [blame] | 234 | { |
| 235 | // Validate output |
| 236 | validate(Accessor(_target), _reference, tolerance_qasymm8); |
| 237 | } |
| 238 | TEST_SUITE_END() |
Michele Di Giorgio | 9c70037 | 2020-01-08 11:33:44 +0000 | [diff] [blame] | 239 | TEST_SUITE(QASYMM8_SIGNED) |
| 240 | FIXTURE_DATA_TEST_CASE(RunSmall, NEFullyConnectedLayerQuantizedFixture<int8_t>, framework::DatasetMode::PRECOMMIT, combine(combine( |
| 241 | combine(datasets::SmallFullyConnectedLayerDataset(), |
| 242 | FullyConnectedParameters), |
| 243 | framework::dataset::make("DataType", DataType::QASYMM8_SIGNED)), |
| 244 | QuantizationData)) |
| 245 | { |
| 246 | // Validate output |
| 247 | validate(Accessor(_target), _reference, tolerance_qasymm8_signed); |
| 248 | } |
| 249 | TEST_SUITE_END() |
Giorgio Arena | a855af1 | 2018-07-16 17:20:38 +0100 | [diff] [blame] | 250 | TEST_SUITE_END() |
| 251 | |
Moritz Pflanzer | 69d3341 | 2017-08-09 11:45:15 +0100 | [diff] [blame] | 252 | TEST_SUITE_END() |
| 253 | TEST_SUITE_END() |
| 254 | } // namespace validation |
| 255 | } // namespace test |
| 256 | } // namespace arm_compute |