blob: d0617275c0fe5b5ba6a6d0893ae71748fc84c5c5 [file] [log] [blame]
Giorgio Arena93a690e2017-08-01 16:09:33 +01001/*
Michalis Spyrouaeebe4a2019-01-09 14:21:03 +00002 * Copyright (c) 2017-2019 ARM Limited.
Giorgio Arena93a690e2017-08-01 16:09:33 +01003 *
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_DEPTHWISE_CONVOLUTION_DATASET
25#define ARM_COMPUTE_TEST_DEPTHWISE_CONVOLUTION_DATASET
26
Anthony Barbier2a07e182017-08-04 18:20:27 +010027#include "utils/TypePrinter.h"
Giorgio Arena93a690e2017-08-01 16:09:33 +010028
29#include "arm_compute/core/TensorShape.h"
30#include "arm_compute/core/Types.h"
31
32namespace arm_compute
33{
34namespace test
35{
36namespace datasets
37{
Giorgio Arena04a8f8c2017-11-23 11:45:24 +000038class DepthwiseConvolutionLayerDataset
Giorgio Arena93a690e2017-08-01 16:09:33 +010039{
40public:
Usama Arife73686a2019-04-08 17:30:48 +010041 using type = std::tuple<TensorShape, Size2D, PadStrideInfo, Size2D>;
Giorgio Arena93a690e2017-08-01 16:09:33 +010042
43 struct iterator
44 {
45 iterator(std::vector<TensorShape>::const_iterator src_it,
Giorgio Arena76572242018-04-04 17:44:26 +010046 std::vector<Size2D>::const_iterator weights_it,
Usama Arife73686a2019-04-08 17:30:48 +010047 std::vector<PadStrideInfo>::const_iterator infos_it,
48 std::vector<Size2D>::const_iterator dilation_it)
Giorgio Arena93a690e2017-08-01 16:09:33 +010049 : _src_it{ std::move(src_it) },
50 _weights_it{ std::move(weights_it) },
Usama Arife73686a2019-04-08 17:30:48 +010051 _infos_it{ std::move(infos_it) },
52 _dilation_it{ std::move(dilation_it) }
Giorgio Arena93a690e2017-08-01 16:09:33 +010053 {
54 }
55
56 std::string description() const
57 {
58 std::stringstream description;
59 description << "In=" << *_src_it << ":";
60 description << "Weights=" << *_weights_it << ":";
Usama Arife73686a2019-04-08 17:30:48 +010061 description << "Info=" << *_infos_it << ":";
62 description << "Dilation=" << *_dilation_it;
Giorgio Arena93a690e2017-08-01 16:09:33 +010063 return description.str();
64 }
65
Giorgio Arena04a8f8c2017-11-23 11:45:24 +000066 DepthwiseConvolutionLayerDataset::type operator*() const
Giorgio Arena93a690e2017-08-01 16:09:33 +010067 {
Usama Arife73686a2019-04-08 17:30:48 +010068 return std::make_tuple(*_src_it, *_weights_it, *_infos_it, *_dilation_it);
Giorgio Arena93a690e2017-08-01 16:09:33 +010069 }
70
71 iterator &operator++()
72 {
73 ++_src_it;
74 ++_weights_it;
Giorgio Arena93a690e2017-08-01 16:09:33 +010075 ++_infos_it;
Usama Arife73686a2019-04-08 17:30:48 +010076 ++_dilation_it;
Giorgio Arena93a690e2017-08-01 16:09:33 +010077
78 return *this;
79 }
80
81 private:
82 std::vector<TensorShape>::const_iterator _src_it;
Giorgio Arena76572242018-04-04 17:44:26 +010083 std::vector<Size2D>::const_iterator _weights_it;
Giorgio Arena93a690e2017-08-01 16:09:33 +010084 std::vector<PadStrideInfo>::const_iterator _infos_it;
Usama Arife73686a2019-04-08 17:30:48 +010085 std::vector<Size2D>::const_iterator _dilation_it;
Giorgio Arena93a690e2017-08-01 16:09:33 +010086 };
87
88 iterator begin() const
89 {
Usama Arife73686a2019-04-08 17:30:48 +010090 return iterator(_src_shapes.begin(), _weight_shapes.begin(), _infos.begin(), _dilations.begin());
Giorgio Arena93a690e2017-08-01 16:09:33 +010091 }
92
93 int size() const
94 {
Usama Arife73686a2019-04-08 17:30:48 +010095 return std::min(_src_shapes.size(), std::min(_weight_shapes.size(), std::min(_infos.size(), _dilations.size())));
Giorgio Arena93a690e2017-08-01 16:09:33 +010096 }
97
Usama Arife73686a2019-04-08 17:30:48 +010098 void add_config(TensorShape src, Size2D weights, PadStrideInfo info, Size2D dilation = Size2D(1U, 1U))
Giorgio Arena93a690e2017-08-01 16:09:33 +010099 {
100 _src_shapes.emplace_back(std::move(src));
101 _weight_shapes.emplace_back(std::move(weights));
Giorgio Arena93a690e2017-08-01 16:09:33 +0100102 _infos.emplace_back(std::move(info));
Usama Arife73686a2019-04-08 17:30:48 +0100103 _dilations.emplace_back(std::move(dilation));
Giorgio Arena93a690e2017-08-01 16:09:33 +0100104 }
105
106protected:
Giorgio Arena04a8f8c2017-11-23 11:45:24 +0000107 DepthwiseConvolutionLayerDataset() = default;
108 DepthwiseConvolutionLayerDataset(DepthwiseConvolutionLayerDataset &&) = default;
Giorgio Arena93a690e2017-08-01 16:09:33 +0100109
110private:
111 std::vector<TensorShape> _src_shapes{};
Giorgio Arena76572242018-04-04 17:44:26 +0100112 std::vector<Size2D> _weight_shapes{};
Giorgio Arena93a690e2017-08-01 16:09:33 +0100113 std::vector<PadStrideInfo> _infos{};
Usama Arife73686a2019-04-08 17:30:48 +0100114 std::vector<Size2D> _dilations{};
Giorgio Arena93a690e2017-08-01 16:09:33 +0100115};
Alex Gildayc357c472018-03-21 13:54:09 +0000116
117/** Dataset containing small, generic depthwise convolution shapes. */
Giorgio Arena04a8f8c2017-11-23 11:45:24 +0000118class SmallDepthwiseConvolutionLayerDataset final : public DepthwiseConvolutionLayerDataset
Giorgio Arena9fe41442017-08-23 16:36:24 +0100119{
120public:
Giorgio Arena04a8f8c2017-11-23 11:45:24 +0000121 SmallDepthwiseConvolutionLayerDataset()
Giorgio Arena9fe41442017-08-23 16:36:24 +0100122 {
Giorgio Arena76572242018-04-04 17:44:26 +0100123 add_config(TensorShape(7U, 7U, 1U), Size2D(3U, 3U), PadStrideInfo(1, 1, 0, 0));
124 add_config(TensorShape(23U, 27U, 5U), Size2D(3U, 5U), PadStrideInfo(2, 1, 0, 0));
125 add_config(TensorShape(33U, 27U, 7U), Size2D(7U, 3U), PadStrideInfo(3, 2, 1, 0));
Jaroslaw Rzepeckia1ed41f2017-10-13 11:13:58 +0100126 // Asymmetric padding
Giorgio Arena76572242018-04-04 17:44:26 +0100127 add_config(TensorShape(33U, 27U, 7U), Size2D(5U, 7U), PadStrideInfo(3, 2, 1, 1, 2, 0, DimensionRoundingType::FLOOR));
128 add_config(TensorShape(33U, 27U, 7U), Size2D(5U, 7U), PadStrideInfo(3, 2, 1, 1, 0, 2, DimensionRoundingType::FLOOR));
Giorgio Arena9fe41442017-08-23 16:36:24 +0100129 }
130};
131
Alex Gildayc357c472018-03-21 13:54:09 +0000132/** Dataset containing large, generic depthwise convolution shapes. */
Giorgio Arena04a8f8c2017-11-23 11:45:24 +0000133class LargeDepthwiseConvolutionLayerDataset final : public DepthwiseConvolutionLayerDataset
Giorgio Arena9fe41442017-08-23 16:36:24 +0100134{
135public:
Giorgio Arena04a8f8c2017-11-23 11:45:24 +0000136 LargeDepthwiseConvolutionLayerDataset()
Giorgio Arena9fe41442017-08-23 16:36:24 +0100137 {
Michalis Spyrouaeebe4a2019-01-09 14:21:03 +0000138 add_config(TensorShape(33U, 27U, 11U), Size2D(3U, 3U), PadStrideInfo(1, 2, 0, 1));
139 add_config(TensorShape(17U, 31U, 2U), Size2D(5U, 9U), PadStrideInfo(1, 2, 1, 1));
140 add_config(TensorShape(23U, 27U, 5U), Size2D(11U, 3U), PadStrideInfo(1, 2, 0, 0));
141 add_config(TensorShape(17U, 31U, 2U, 3U), Size2D(5U, 9U), PadStrideInfo(1, 2, 1, 1));
Giorgio Arena76572242018-04-04 17:44:26 +0100142 add_config(TensorShape(233U, 277U, 55U), Size2D(3U, 3U), PadStrideInfo(2, 1, 0, 0));
143 add_config(TensorShape(333U, 277U, 77U), Size2D(3U, 3U), PadStrideInfo(3, 2, 1, 0));
144 add_config(TensorShape(177U, 311U, 22U), Size2D(3U, 3U), PadStrideInfo(1, 2, 1, 1));
145 add_config(TensorShape(233U, 277U, 55U), Size2D(3U, 3U), PadStrideInfo(1, 2, 0, 0));
146 add_config(TensorShape(333U, 277U, 77U), Size2D(3U, 3U), PadStrideInfo(2, 3, 0, 1));
147 add_config(TensorShape(177U, 311U, 22U), Size2D(3U, 3U), PadStrideInfo(2, 1, 1, 1));
Michalis Spyrouaeebe4a2019-01-09 14:21:03 +0000148 // Asymmetric padding
149 add_config(TensorShape(33U, 27U, 7U), Size2D(5U, 7U), PadStrideInfo(3, 2, 2, 1, 2, 0, DimensionRoundingType::FLOOR));
150 add_config(TensorShape(33U, 27U, 7U), Size2D(5U, 7U), PadStrideInfo(3, 2, 1, 3, 0, 2, DimensionRoundingType::FLOOR));
151 add_config(TensorShape(33U, 27U, 7U), Size2D(5U, 7U), PadStrideInfo(3, 2, 1, 0, 1, 0, DimensionRoundingType::FLOOR));
152 add_config(TensorShape(33U, 27U, 7U), Size2D(5U, 7U), PadStrideInfo(3, 2, 0, 1, 0, 1, DimensionRoundingType::FLOOR));
Giorgio Arena9fe41442017-08-23 16:36:24 +0100153 }
154};
155
Alex Gildayc357c472018-03-21 13:54:09 +0000156/** Dataset containing small, 3x3 depthwise convolution shapes. */
Giorgio Arena04a8f8c2017-11-23 11:45:24 +0000157class SmallDepthwiseConvolutionLayerDataset3x3 final : public DepthwiseConvolutionLayerDataset
Georgios Pinitasc26ecf82017-09-22 13:44:05 +0100158{
159public:
Giorgio Arena04a8f8c2017-11-23 11:45:24 +0000160 SmallDepthwiseConvolutionLayerDataset3x3()
Georgios Pinitasc26ecf82017-09-22 13:44:05 +0100161 {
Giorgio Arena76572242018-04-04 17:44:26 +0100162 add_config(TensorShape(3U, 3U, 2U), Size2D(3U, 3U), PadStrideInfo(1, 1, 0, 0));
163 add_config(TensorShape(7U, 7U, 3U, 2U), Size2D(3U, 3U), PadStrideInfo(1, 1, 0, 0));
Giorgio Arenad051e972018-06-20 11:46:42 +0100164 add_config(TensorShape(21U, 31U, 9U, 4U), Size2D(3U, 3U), PadStrideInfo(1, 1, 1, 0));
Georgios Pinitas15997872018-02-19 13:58:22 +0000165 // Asymmetric padding
Giorgio Arena76572242018-04-04 17:44:26 +0100166 add_config(TensorShape(33U, 27U, 11U), Size2D(3U, 3U), PadStrideInfo(2, 2, 0, 1, 0, 1, DimensionRoundingType::FLOOR));
Giorgio Arenadfca60b2018-01-31 10:30:59 +0000167 }
168};
169
170class SmallDepthwiseConvolutionLayerDataset3x3NCHW final : public DepthwiseConvolutionLayerDataset
171{
172public:
173 SmallDepthwiseConvolutionLayerDataset3x3NCHW()
174 {
Giorgio Arena76572242018-04-04 17:44:26 +0100175 add_config(TensorShape(33U, 27U, 11U), Size2D(3U, 3U), PadStrideInfo(3, 2, 1, 1));
Giorgio Arenadfca60b2018-01-31 10:30:59 +0000176 // Asymmetric padding
Giorgio Arena76572242018-04-04 17:44:26 +0100177 add_config(TensorShape(33U, 27U, 11U), Size2D(3U, 3U), PadStrideInfo(2, 2, 3, 1, 2, 1, DimensionRoundingType::FLOOR));
Georgios Pinitasc26ecf82017-09-22 13:44:05 +0100178 }
179};
180
Alex Gildayc357c472018-03-21 13:54:09 +0000181/** Dataset containing large, 3x3 depthwise convolution shapes. */
Giorgio Arena04a8f8c2017-11-23 11:45:24 +0000182class LargeDepthwiseConvolutionLayerDataset3x3 final : public DepthwiseConvolutionLayerDataset
Georgios Pinitasc26ecf82017-09-22 13:44:05 +0100183{
184public:
Giorgio Arena04a8f8c2017-11-23 11:45:24 +0000185 LargeDepthwiseConvolutionLayerDataset3x3()
Georgios Pinitasc26ecf82017-09-22 13:44:05 +0100186 {
Michalis Spyrouaeebe4a2019-01-09 14:21:03 +0000187 add_config(TensorShape(33U, 27U, 11U, 3U), Size2D(3U, 3U), PadStrideInfo(1, 1, 0, 1));
188 add_config(TensorShape(33U, 27U, 11U, 3U), Size2D(3U, 3U), PadStrideInfo(1, 1, 1, 1));
189 add_config(TensorShape(21U, 31U, 9U, 4U), Size2D(3U, 3U), PadStrideInfo(1, 2, 1, 0));
190 add_config(TensorShape(33U, 27U, 11U, 3U), Size2D(3U, 3U), PadStrideInfo(1, 2, 0, 1));
191 add_config(TensorShape(33U, 27U, 11U, 3U), Size2D(3U, 3U), PadStrideInfo(1, 2, 1, 1));
192 add_config(TensorShape(21U, 31U, 9U, 4U), Size2D(3U, 3U), PadStrideInfo(2, 1, 1, 0));
193 add_config(TensorShape(33U, 27U, 11U, 3U), Size2D(3U, 3U), PadStrideInfo(2, 1, 0, 1));
194 add_config(TensorShape(33U, 27U, 11U, 3U), Size2D(3U, 3U), PadStrideInfo(2, 1, 1, 1));
195 add_config(TensorShape(21U, 31U, 9U, 4U), Size2D(3U, 3U), PadStrideInfo(2, 2, 1, 0));
196 add_config(TensorShape(33U, 27U, 11U, 3U), Size2D(3U, 3U), PadStrideInfo(2, 2, 0, 1));
197 add_config(TensorShape(33U, 27U, 11U, 3U), Size2D(3U, 3U), PadStrideInfo(2, 2, 1, 1));
Giorgio Arena76572242018-04-04 17:44:26 +0100198 add_config(TensorShape(233U, 277U, 55U, 3U), Size2D(3U, 3U), PadStrideInfo(2, 1, 0, 0));
199 add_config(TensorShape(177U, 311U, 22U), Size2D(3U, 3U), PadStrideInfo(1, 2, 1, 1));
200 add_config(TensorShape(233U, 277U, 55U), Size2D(3U, 3U), PadStrideInfo(1, 2, 0, 0));
201 add_config(TensorShape(333U, 277U, 77U, 5U), Size2D(3U, 3U), PadStrideInfo(2, 3, 0, 1));
202 add_config(TensorShape(177U, 311U, 22U), Size2D(3U, 3U), PadStrideInfo(2, 1, 1, 1));
Georgios Pinitasc26ecf82017-09-22 13:44:05 +0100203 }
204};
Alex Gildayc357c472018-03-21 13:54:09 +0000205
206/** Dataset containing optimized, 3x3 depthwise convolution shapes. */
Michalis Spyrouaeebe4a2019-01-09 14:21:03 +0000207class SmallOptimizedDepthwiseConvolutionLayerDataset3x3 final : public DepthwiseConvolutionLayerDataset
Georgios Pinitas4074c992018-01-30 18:13:46 +0000208{
209public:
Michalis Spyrouaeebe4a2019-01-09 14:21:03 +0000210 SmallOptimizedDepthwiseConvolutionLayerDataset3x3()
Georgios Pinitas4074c992018-01-30 18:13:46 +0000211 {
212 // Stride 1
Giorgio Arena76572242018-04-04 17:44:26 +0100213 add_config(TensorShape(7U, 7U, 16U), Size2D(3U, 3U), PadStrideInfo(1, 1, 0, 0, DimensionRoundingType::CEIL));
Georgios Pinitas4c758512019-07-10 19:49:11 +0100214 add_config(TensorShape(7U, 7U, 16U), Size2D(3U, 3U), PadStrideInfo(1, 1, 0, 0, DimensionRoundingType::CEIL), Size2D(2U, 2U));
Giorgio Arena76572242018-04-04 17:44:26 +0100215 add_config(TensorShape(7U, 7U, 16U), Size2D(3U, 3U), PadStrideInfo(1, 1, 1, 1, DimensionRoundingType::CEIL));
Georgios Pinitas4c758512019-07-10 19:49:11 +0100216 add_config(TensorShape(7U, 7U, 16U), Size2D(3U, 3U), PadStrideInfo(1, 1, 2, 2, DimensionRoundingType::CEIL), Size2D(2U, 2U));
Michalis Spyrouaeebe4a2019-01-09 14:21:03 +0000217 // Stride 2
Georgios Pinitas4c758512019-07-10 19:49:11 +0100218 add_config(TensorShape(9U, 9U, 32U), Size2D(3U, 3U), PadStrideInfo(2, 2, 0, 0, DimensionRoundingType::CEIL));
219 add_config(TensorShape(9U, 9U, 32U), Size2D(3U, 3U), PadStrideInfo(2, 2, 0, 0, DimensionRoundingType::CEIL), Size2D(2U, 2U));
220 add_config(TensorShape(9U, 9U, 32U), Size2D(3U, 3U), PadStrideInfo(2, 2, 1, 1, DimensionRoundingType::CEIL));
221 // TODO(COMPMID-2464): Enable once dilated conv with stride 2 is supported
222 // add_config(TensorShape(9U, 9U, 1U), Size2D(3U, 3U), PadStrideInfo(2, 2, 2, 2, DimensionRoundingType::CEIL), Size2D(2U, 2U));
Michalis Spyrouaeebe4a2019-01-09 14:21:03 +0000223 }
224};
225/** Dataset containing optimized, 3x3 depthwise convolution shapes. */
226class LargeOptimizedDepthwiseConvolutionLayerDataset3x3 final : public DepthwiseConvolutionLayerDataset
227{
228public:
229 LargeOptimizedDepthwiseConvolutionLayerDataset3x3()
230 {
231 // Stride 1
232 add_config(TensorShape(233U, 277U, 16U), Size2D(3U, 3U), PadStrideInfo(1, 1, 0, 0, DimensionRoundingType::CEIL));
233 add_config(TensorShape(233U, 7U, 16U), Size2D(3U, 3U), PadStrideInfo(1, 1, 1, 1, DimensionRoundingType::CEIL));
Georgios Pinitasa799ce02018-09-12 20:11:34 +0100234 add_config(TensorShape(7U, 7U, 21U), Size2D(3U, 3U), PadStrideInfo(1, 1, 1, 1, DimensionRoundingType::CEIL));
Giorgio Arena76572242018-04-04 17:44:26 +0100235 add_config(TensorShape(28U, 28U, 16U), Size2D(3U, 3U), PadStrideInfo(1, 1, 0, 0, DimensionRoundingType::CEIL));
236 add_config(TensorShape(28U, 28U, 16U), Size2D(3U, 3U), PadStrideInfo(1, 1, 1, 1, DimensionRoundingType::CEIL));
Georgios Pinitas4074c992018-01-30 18:13:46 +0000237 // Stride 2
Michalis Spyrouaeebe4a2019-01-09 14:21:03 +0000238 add_config(TensorShape(233U, 277U, 32U), Size2D(3U, 3U), PadStrideInfo(2, 2, 0, 0, DimensionRoundingType::CEIL));
239 add_config(TensorShape(233U, 277U, 32U), Size2D(3U, 3U), PadStrideInfo(2, 2, 1, 1, 1, 1, DimensionRoundingType::CEIL));
Giorgio Arena76572242018-04-04 17:44:26 +0100240 add_config(TensorShape(8U, 8U, 32U), Size2D(3U, 3U), PadStrideInfo(2, 2, 0, 0, DimensionRoundingType::FLOOR));
241 add_config(TensorShape(8U, 8U, 32U), Size2D(3U, 3U), PadStrideInfo(2, 2, 0, 1, 0, 1, DimensionRoundingType::CEIL));
Georgios Pinitasa799ce02018-09-12 20:11:34 +0100242 add_config(TensorShape(8U, 8U, 33U), Size2D(3U, 3U), PadStrideInfo(2, 2, 0, 1, 0, 1, DimensionRoundingType::CEIL));
Giorgio Arena76572242018-04-04 17:44:26 +0100243 add_config(TensorShape(64U, 64U, 128U), Size2D(3U, 3U), PadStrideInfo(2, 2, 0, 1, 0, 1, DimensionRoundingType::CEIL));
Georgios Pinitas4074c992018-01-30 18:13:46 +0000244 }
245};
Georgios Pinitas4c758512019-07-10 19:49:11 +0100246
247/** Dataset containing optimized, 5x5 depthwise convolution shapes. */
248class SmallOptimizedDepthwiseConvolutionLayerDataset5x5 final : public DepthwiseConvolutionLayerDataset
249{
250public:
251 SmallOptimizedDepthwiseConvolutionLayerDataset5x5()
252 {
253 // Stride 1
254 add_config(TensorShape(7U, 7U, 16U), Size2D(5U, 5U), PadStrideInfo(1, 1, 0, 0, DimensionRoundingType::CEIL));
255 add_config(TensorShape(11U, 11U, 16U), Size2D(5U, 5U), PadStrideInfo(1, 1, 0, 0, DimensionRoundingType::CEIL), Size2D(2U, 2U));
256 add_config(TensorShape(7U, 7U, 16U), Size2D(5U, 5U), PadStrideInfo(1, 1, 2, 2, DimensionRoundingType::CEIL));
257 add_config(TensorShape(7U, 7U, 16U), Size2D(5U, 5U), PadStrideInfo(1, 1, 4, 4, DimensionRoundingType::CEIL), Size2D(2U, 2U));
258 // Stride 2
259 add_config(TensorShape(9U, 9U, 32U), Size2D(5U, 5U), PadStrideInfo(2, 2, 0, 0, DimensionRoundingType::CEIL));
260 // TODO(COMPMID-2464): Enable once dilated conv with stride 2 is supported
261 // add_config(TensorShape(9U, 9U, 32U), Size2D(5U, 5U), PadStrideInfo(2, 2, 0, 0, DimensionRoundingType::CEIL), Size2D(2U, 2U));
262 add_config(TensorShape(9U, 9U, 32U), Size2D(5U, 5U), PadStrideInfo(2, 2, 2, 2, 2, 2, DimensionRoundingType::CEIL));
263 // TODO(COMPMID-2464): Enable once dilated conv with stride 2 is supported
264 // add_config(TensorShape(9U, 9U, 32U), Size2D(5U, 5U), PadStrideInfo(2, 2, 4, 4, 4, 4, DimensionRoundingType::CEIL), Size2D(2U, 2U));
265 }
266};
Giorgio Arena93a690e2017-08-01 16:09:33 +0100267} // namespace datasets
268} // namespace test
269} // namespace arm_compute
270#endif /* ARM_COMPUTE_TEST_DEPTHWISE_CONVOLUTION_DATASET */