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