Anthony Barbier | 6ff3b19 | 2017-09-04 18:44:23 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017 ARM Limited. |
| 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 | #ifndef __ARM_COMPUTE_TEST_VALIDATION_DATASETS_H__ |
| 25 | #define __ARM_COMPUTE_TEST_VALIDATION_DATASETS_H__ |
| 26 | |
Moritz Pflanzer | a09de0c | 2017-09-01 20:41:12 +0100 | [diff] [blame] | 27 | #include "tests/validation_old/dataset/ActivationFunctionDataset.h" |
| 28 | #include "tests/validation_old/dataset/BatchNormalizationLayerDataset.h" |
| 29 | #include "tests/validation_old/dataset/BorderModeDataset.h" |
| 30 | #include "tests/validation_old/dataset/ConvertPolicyDataset.h" |
| 31 | #include "tests/validation_old/dataset/ConvolutionLayerDataset.h" |
| 32 | #include "tests/validation_old/dataset/DataTypeDatasets.h" |
| 33 | #include "tests/validation_old/dataset/FullyConnectedLayerDataset.h" |
| 34 | #include "tests/validation_old/dataset/GEMMDataset.h" |
| 35 | #include "tests/validation_old/dataset/ImageDatasets.h" |
| 36 | #include "tests/validation_old/dataset/InterpolationPolicyDataset.h" |
| 37 | #include "tests/validation_old/dataset/MatrixPatternDataset.h" |
| 38 | #include "tests/validation_old/dataset/NonLinearFilterFunctionDataset.h" |
| 39 | #include "tests/validation_old/dataset/NormalizationTypeDataset.h" |
| 40 | #include "tests/validation_old/dataset/PoolingTypesDataset.h" |
| 41 | #include "tests/validation_old/dataset/RoundingPolicyDataset.h" |
| 42 | #include "tests/validation_old/dataset/ShapeDatasets.h" |
| 43 | #include "tests/validation_old/dataset/ThresholdDataset.h" |
Anthony Barbier | 6ff3b19 | 2017-09-04 18:44:23 +0100 | [diff] [blame] | 44 | |
Moritz Pflanzer | a09de0c | 2017-09-01 20:41:12 +0100 | [diff] [blame] | 45 | #include "tests/validation_old/boost_wrapper.h" |
Anthony Barbier | 6ff3b19 | 2017-09-04 18:44:23 +0100 | [diff] [blame] | 46 | |
| 47 | using namespace boost::unit_test::data::monomorphic; |
| 48 | |
| 49 | namespace boost |
| 50 | { |
| 51 | namespace unit_test |
| 52 | { |
| 53 | namespace data |
| 54 | { |
| 55 | namespace monomorphic |
| 56 | { |
| 57 | /// Register the data set with Boost |
| 58 | template <> |
| 59 | struct is_dataset<arm_compute::test::SmallImages> : boost::mpl::true_ |
| 60 | { |
| 61 | }; |
| 62 | |
| 63 | /// Register the data set with Boost |
| 64 | template <> |
| 65 | struct is_dataset<arm_compute::test::LargeImages> : boost::mpl::true_ |
| 66 | { |
| 67 | }; |
| 68 | |
| 69 | /// Register the data set with Boost |
| 70 | template <> |
| 71 | struct is_dataset<arm_compute::test::SmallShapes> : boost::mpl::true_ |
| 72 | { |
| 73 | }; |
| 74 | |
| 75 | /// Register the data set with Boost |
| 76 | template <> |
| 77 | struct is_dataset<arm_compute::test::Small1DShape> : boost::mpl::true_ |
| 78 | { |
| 79 | }; |
| 80 | |
| 81 | /// Register the data set with Boost |
| 82 | template <> |
Giorgio Arena | f795986 | 2017-06-13 15:19:51 +0100 | [diff] [blame] | 83 | struct is_dataset<arm_compute::test::Small2DShapes> : boost::mpl::true_ |
| 84 | { |
| 85 | }; |
| 86 | |
| 87 | /// Register the data set with Boost |
| 88 | template <> |
Anthony Barbier | 6ff3b19 | 2017-09-04 18:44:23 +0100 | [diff] [blame] | 89 | struct is_dataset<arm_compute::test::LargeShapes> : boost::mpl::true_ |
| 90 | { |
| 91 | }; |
| 92 | |
| 93 | /// Register the data set with Boost |
| 94 | template <> |
Giorgio Arena | f795986 | 2017-06-13 15:19:51 +0100 | [diff] [blame] | 95 | struct is_dataset<arm_compute::test::Large2DShapes> : boost::mpl::true_ |
| 96 | { |
| 97 | }; |
| 98 | |
| 99 | /// Register the data set with Boost |
| 100 | template <> |
Anthony Barbier | 6ff3b19 | 2017-09-04 18:44:23 +0100 | [diff] [blame] | 101 | struct is_dataset<arm_compute::test::AllDataTypes> : boost::mpl::true_ |
| 102 | { |
| 103 | }; |
| 104 | |
| 105 | /// Register the data set with Boost |
| 106 | template <> |
| 107 | struct is_dataset<arm_compute::test::UnsignedDataTypes> : boost::mpl::true_ |
| 108 | { |
| 109 | }; |
| 110 | |
| 111 | // Register the data set with Boost |
| 112 | template <> |
| 113 | struct is_dataset<arm_compute::test::SignedDataTypes> : boost::mpl::true_ |
| 114 | { |
| 115 | }; |
| 116 | |
| 117 | /// Register the data set with Boost |
| 118 | template <> |
| 119 | struct is_dataset<arm_compute::test::FloatDataTypes> : boost::mpl::true_ |
| 120 | { |
| 121 | }; |
| 122 | |
| 123 | /// Register the data set with Boost |
| 124 | template <> |
| 125 | struct is_dataset<arm_compute::test::FixedPointDataTypes> : boost::mpl::true_ |
| 126 | { |
| 127 | }; |
| 128 | |
| 129 | /// Register the data set with Boost |
| 130 | template <> |
| 131 | struct is_dataset<arm_compute::test::CNNFloatDataTypes> : boost::mpl::true_ |
| 132 | { |
| 133 | }; |
| 134 | |
| 135 | /// Register the data set with Boost |
| 136 | template <> |
| 137 | struct is_dataset<arm_compute::test::CNNFixedPointDataTypes> : boost::mpl::true_ |
| 138 | { |
| 139 | }; |
| 140 | |
| 141 | /// Register the data set with Boost |
| 142 | template <> |
| 143 | struct is_dataset<arm_compute::test::CNNDataTypes> : boost::mpl::true_ |
| 144 | { |
| 145 | }; |
| 146 | |
| 147 | /// Register the data set with Boost |
| 148 | template <> |
| 149 | struct is_dataset<arm_compute::test::ActivationFunctions> : boost::mpl::true_ |
| 150 | { |
| 151 | }; |
| 152 | |
| 153 | /// Register the data set with Boost |
| 154 | template <> |
| 155 | struct is_dataset<arm_compute::test::BorderModes> : boost::mpl::true_ |
| 156 | { |
| 157 | }; |
| 158 | |
| 159 | /// Register the data set with Boost |
| 160 | template <> |
| 161 | struct is_dataset<arm_compute::test::ConvertPolicies> : boost::mpl::true_ |
| 162 | { |
| 163 | }; |
| 164 | |
| 165 | /// Register the data set with Boost |
| 166 | template <> |
| 167 | struct is_dataset<arm_compute::test::InterpolationPolicies> : boost::mpl::true_ |
| 168 | { |
| 169 | }; |
| 170 | |
| 171 | /// Register the data set with Boost |
| 172 | template <> |
| 173 | struct is_dataset<arm_compute::test::NormalizationTypes> : boost::mpl::true_ |
| 174 | { |
| 175 | }; |
| 176 | |
| 177 | /// Register the data set with Boost |
| 178 | template <> |
Anthony Barbier | 6ff3b19 | 2017-09-04 18:44:23 +0100 | [diff] [blame] | 179 | struct is_dataset<arm_compute::test::RoundingPolicies> : boost::mpl::true_ |
| 180 | { |
| 181 | }; |
| 182 | |
| 183 | /// Register the data set with Boost |
| 184 | template <> |
Georgios Pinitas | ce09314 | 2017-06-19 16:11:53 +0100 | [diff] [blame] | 185 | struct is_dataset<arm_compute::test::PoolingTypes> : boost::mpl::true_ |
| 186 | { |
| 187 | }; |
| 188 | |
| 189 | /// Register the data set with Boost |
| 190 | template <> |
Anthony Barbier | 6ff3b19 | 2017-09-04 18:44:23 +0100 | [diff] [blame] | 191 | struct is_dataset<arm_compute::test::AlexNetConvolutionLayerDataset> : boost::mpl::true_ |
| 192 | { |
| 193 | }; |
| 194 | |
| 195 | /// Register the data set with Boost |
| 196 | template <> |
| 197 | struct is_dataset<arm_compute::test::AlexNetFullyConnectedLayerDataset> : boost::mpl::true_ |
| 198 | { |
| 199 | }; |
| 200 | |
| 201 | /// Register the data set with Boost |
| 202 | template <> |
| 203 | struct is_dataset<arm_compute::test::DirectConvolutionShapes> : boost::mpl::true_ |
| 204 | { |
| 205 | }; |
| 206 | |
| 207 | /// Register the data set with Boost |
| 208 | template <> |
| 209 | struct is_dataset<arm_compute::test::SmallFullyConnectedLayerDataset> : boost::mpl::true_ |
| 210 | { |
| 211 | }; |
| 212 | |
| 213 | /// Register the data set with Boost |
| 214 | template <> |
| 215 | struct is_dataset<arm_compute::test::LargeFullyConnectedLayerDataset> : boost::mpl::true_ |
| 216 | { |
| 217 | }; |
| 218 | |
| 219 | /// Register the data set with Boost |
| 220 | template <> |
| 221 | struct is_dataset<arm_compute::test::SmallConvolutionLayerDataset> : boost::mpl::true_ |
| 222 | { |
| 223 | }; |
| 224 | |
| 225 | /// Register the data set with Boost |
| 226 | template <> |
| 227 | struct is_dataset<arm_compute::test::SmallGEMMDataset> : boost::mpl::true_ |
| 228 | { |
| 229 | }; |
| 230 | |
| 231 | /// Register the data set with Boost |
| 232 | template <> |
| 233 | struct is_dataset<arm_compute::test::LargeGEMMDataset> : boost::mpl::true_ |
| 234 | { |
| 235 | }; |
| 236 | |
| 237 | /// Register the data set with Boost |
| 238 | template <> |
| 239 | struct is_dataset<arm_compute::test::RandomBatchNormalizationLayerDataset> : boost::mpl::true_ |
| 240 | { |
| 241 | }; |
| 242 | |
| 243 | /// Register the data set with Boost |
| 244 | template <> |
| 245 | struct is_dataset<arm_compute::test::ThresholdDataset> : boost::mpl::true_ |
| 246 | { |
| 247 | }; |
Isabella Gottardi | 3b77e9d | 2017-06-22 11:05:41 +0100 | [diff] [blame] | 248 | |
| 249 | /// Register the data set with Boost |
| 250 | template <> |
| 251 | struct is_dataset<arm_compute::test::NonLinearFilterFunctions> : boost::mpl::true_ |
| 252 | { |
| 253 | }; |
| 254 | |
| 255 | /// Register the data set with Boost |
| 256 | template <> |
| 257 | struct is_dataset<arm_compute::test::MatrixPatterns> : boost::mpl::true_ |
| 258 | { |
| 259 | }; |
Anthony Barbier | 6ff3b19 | 2017-09-04 18:44:23 +0100 | [diff] [blame] | 260 | } |
| 261 | } |
| 262 | } |
| 263 | } |
Anthony Barbier | ac69aa1 | 2017-07-03 17:39:37 +0100 | [diff] [blame] | 264 | #endif /* __ARM_COMPUTE_TEST_VALIDATION_DATASETS_H__ */ |