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