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