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