blob: 50e69a8adfbe694b43b3872c052b303a55d020c8 [file] [log] [blame]
Pablo Tello89519332017-11-17 11:52:36 +00001/*
Pablo Tello9ceebbe2018-01-10 16:44:13 +00002 * Copyright (c) 2017-2018 ARM Limited.
Pablo Tello89519332017-11-17 11:52:36 +00003 *
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 */
Georgios Pinitas9fb11592018-04-26 20:34:58 +010024#include "arm_compute/core/NEON/kernels/NEWinogradConvolutionLayerKernel.h"
Pablo Tello89519332017-11-17 11:52:36 +000025
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +010026#include "arm_compute/core/AccessWindowStatic.h"
Pablo Tello89519332017-11-17 11:52:36 +000027#include "arm_compute/core/Error.h"
28#include "arm_compute/core/Helpers.h"
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +010029#include "arm_compute/core/IAccessWindow.h"
Pablo Tello89519332017-11-17 11:52:36 +000030#include "arm_compute/core/ITensor.h"
31#include "arm_compute/core/TensorInfo.h"
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +010032#include "arm_compute/core/Validate.h"
33#include "arm_compute/core/Window.h"
34#include "arm_compute/core/utils/misc/ShapeCalculator.h"
Pablo Tello3d4968a2017-12-04 15:03:35 +000035#include "support/ToolchainSupport.h"
36
Pablo Tello89519332017-11-17 11:52:36 +000037namespace arm_compute
38{
Pablo Tello52140b42018-01-30 14:48:11 +000039//Batched Gemms
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +010040
41namespace
42{
43Status validate_arguments_winograd_gemm(const ITensorInfo *a, const ITensorInfo *b, const ITensor *c, const ITensorInfo *output, const float alpha, const float beta,
44 const GEMMInfo &gemm_info = GEMMInfo())
45{
46 ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(a);
47 ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(b);
48 ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(output);
49
50 ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(a, 1, DataType::F32);
51 ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DATA_TYPES(a, b);
52 ARM_COMPUTE_RETURN_ERROR_ON_MSG(gemm_info.is_a_reshaped(), "Matrix A already reshaped is not supported");
53 ARM_COMPUTE_RETURN_ERROR_ON_MSG(gemm_info.is_b_reshaped(), "Matrix B already reshaped is not supported");
54
55 if(c != nullptr)
56 {
57 ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DATA_TYPES(a, c->info());
58 ARM_COMPUTE_RETURN_ERROR_ON_MSG(a->dimension(1) != c->info()->dimension(1), "The matrix C must have the same number of rows as the matrix A");
59 ARM_COMPUTE_RETURN_ERROR_ON_MSG(b->dimension(0) != c->info()->dimension(0), "The matrix C must have the same number of columns as the matrix B");
60 }
61
62 if(output->total_size() != 0)
63 {
64 ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DATA_TYPES(a, output);
65 ARM_COMPUTE_RETURN_ERROR_ON_MSG(b->dimension(0) != output->dimension(0), "The output matrix must have the same number of columns as the matrix B");
66 ARM_COMPUTE_RETURN_ERROR_ON_MSG(a->dimension(1) != output->dimension(1), "The output matrix must have the same number of rows as the matrix A");
67 ARM_COMPUTE_RETURN_ERROR_ON(output->num_dimensions() != a->num_dimensions());
68 }
69
70 ARM_COMPUTE_RETURN_ERROR_ON_MSG(a->dimension(0) != b->dimension(1), "The product AB is defined only if the number of columns in A is equal to the number of rows in B");
71 ARM_COMPUTE_UNUSED(alpha, beta);
72 return Status{};
73}
74
Vidhya Sudhan Loganathan84ce1f92018-04-25 13:00:09 +010075Status validate_arguments_winograd_weight_trans(const ITensorInfo *input, const ITensorInfo *output, const WinogradInfo &winograd_info)
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +010076{
77 ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(input);
78 ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(output);
79 ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input, 1, DataType::F32);
80
81 const size_t idx_width = get_data_layout_dimension_index(input->data_layout(), DataLayoutDimension::WIDTH);
82 const size_t idx_height = get_data_layout_dimension_index(input->data_layout(), DataLayoutDimension::HEIGHT);
83 ARM_COMPUTE_RETURN_ERROR_ON(input->dimension(idx_width) != 3 && input->dimension(idx_width) != 5);
84 ARM_COMPUTE_RETURN_ERROR_ON(input->dimension(idx_width) != input->dimension(idx_height));
85 ARM_COMPUTE_RETURN_ERROR_ON(input->num_dimensions() > 4);
Vidhya Sudhan Loganathan84ce1f92018-04-25 13:00:09 +010086 const Size2D &output_tile = winograd_info.output_tile_size;
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +010087 ARM_COMPUTE_RETURN_ERROR_ON(output_tile != Size2D(2U, 2U) && output_tile != Size2D(4U, 4U));
88
89 // Checks performed when output is configured
90 if(output->total_size() != 0)
91 {
Vidhya Sudhan Loganathan84ce1f92018-04-25 13:00:09 +010092 const TensorInfo tensor_info_output = input->clone()->set_tensor_shape(arm_compute::misc::shape_calculator::compute_winograd_filter_transform_shape(*input, winograd_info));
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +010093
94 ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_SHAPES(output, &tensor_info_output);
95 ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DATA_TYPES(input, output);
96 }
97
98 return Status{};
99}
100
Vidhya Sudhan Loganathan84ce1f92018-04-25 13:00:09 +0100101std::pair<Status, Window> validate_and_configure_window_winograd_weight_trans(ITensorInfo *input, ITensorInfo *output, const WinogradInfo &winograd_info)
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +0100102{
Vidhya Sudhan Loganathan84ce1f92018-04-25 13:00:09 +0100103 const Size2D kernel_dims = winograd_info.kernel_size;
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +0100104 // Output tensor auto inizialitation if not yet initialized
Vidhya Sudhan Loganathan84ce1f92018-04-25 13:00:09 +0100105 auto_init_if_empty(*output, input->clone()->set_tensor_shape(arm_compute::misc::shape_calculator::compute_winograd_filter_transform_shape(*input, winograd_info)));
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +0100106
107 unsigned int num_elems_processed_per_iteration_x = kernel_dims.width;
108 unsigned int num_elems_processed_per_iteration_y = kernel_dims.height;
109
110 Window win = calculate_max_window(*input, Steps(num_elems_processed_per_iteration_x, num_elems_processed_per_iteration_y));
111 bool window_changed = false;
112
113 AccessWindowRectangle input_access(input, 0, 0, num_elems_processed_per_iteration_x, num_elems_processed_per_iteration_y);
114 AccessWindowStatic output_access(output, 0, 0, output->dimension(0), output->dimension(1));
115 window_changed = update_window_and_padding(win, input_access, output_access);
116 output_access.set_valid_region(win, ValidRegion(Coordinates(0, 0), output->tensor_shape()));
117
118 Window win_collapsed = win.collapse(win, Window::DimZ);
119
120 Status err = (window_changed) ? ARM_COMPUTE_CREATE_ERROR(ErrorCode::RUNTIME_ERROR, "Insufficient Padding!") : Status{};
121
122 return std::make_pair(err, win_collapsed);
123}
124
Vidhya Sudhan Loganathan84ce1f92018-04-25 13:00:09 +0100125Status validate_arguments_winograd_input_trans(const ITensorInfo *input, const ITensorInfo *output, const WinogradInfo &winograd_info)
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +0100126{
Vidhya Sudhan Loganathan84ce1f92018-04-25 13:00:09 +0100127 const Size2D &kernel_dims = winograd_info.kernel_size;
128 const PadStrideInfo &conv_info = winograd_info.convolution_info;
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +0100129 ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(input);
130 ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(output);
131 ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input, 1, DataType::F32);
132 ARM_COMPUTE_RETURN_ERROR_ON_MSG(conv_info.stride().first != 1 || conv_info.stride().second != 1, "Winograd input transform only supports unit strides");
133 ARM_COMPUTE_RETURN_ERROR_ON_MSG((kernel_dims.width != 3U && kernel_dims.width != 5U), "Winograd input transform only supports 3x3 and 5x5 kernels");
134 ARM_COMPUTE_RETURN_ERROR_ON_MSG((kernel_dims.width != kernel_dims.height), "Winograd input transform only supports 3x3 and 5x5 kernels");
135
136 // Validate configured output
137 if(output->total_size() != 0)
138 {
Vidhya Sudhan Loganathan84ce1f92018-04-25 13:00:09 +0100139 const TensorShape output_shape = misc::shape_calculator::compute_winograd_input_transform_shape(*input, winograd_info);
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +0100140
141 ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DIMENSIONS(output->tensor_shape(), output_shape);
142 ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DATA_TYPES(input, output);
143 }
144
145 return Status{};
146}
147
Vidhya Sudhan Loganathan84ce1f92018-04-25 13:00:09 +0100148std::pair<Status, Window> validate_and_configure_window_winograd_input_trans(ITensorInfo *input, ITensorInfo *output, const WinogradInfo &winograd_info)
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +0100149{
Vidhya Sudhan Loganathan84ce1f92018-04-25 13:00:09 +0100150 const PadStrideInfo conv_info = winograd_info.convolution_info;
151 const Size2D output_tile_size = winograd_info.output_tile_size;
152 const Size2D kernel_dims = winograd_info.kernel_size;
153 const TensorShape output_shape = misc::shape_calculator::compute_winograd_input_transform_shape(*input, winograd_info);
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +0100154 // Output auto inizialitation if not yet initialized
155 auto_init_if_empty(*output, input->clone()->set_tensor_shape(output_shape));
156
Vidhya Sudhan Loganathan84ce1f92018-04-25 13:00:09 +0100157 unsigned int num_elems_read_per_iteration_x = (output_tile_size.width + kernel_dims.width - 1);
158 unsigned int num_elems_read_per_iteration_y = (output_tile_size.height + kernel_dims.height - 1);
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +0100159
160 Window win = calculate_max_window(*input, Steps(1, 1));
161
162 AccessWindowRectangle input_access(input, -conv_info.pad_left(), -conv_info.pad_top(), num_elems_read_per_iteration_x, num_elems_read_per_iteration_y);
163
164 bool window_changed = update_window_and_padding(win, input_access);
165
166 Status err = (window_changed) ? ARM_COMPUTE_CREATE_ERROR(ErrorCode::RUNTIME_ERROR, "Insufficient Padding!") : Status{};
167 return std::make_pair(err, win);
168}
169
Vidhya Sudhan Loganathan84ce1f92018-04-25 13:00:09 +0100170Status validate_arguments_winograd_output_trans(const ITensorInfo *input, const ITensorInfo *bias, const ITensorInfo *output, const WinogradInfo &winograd_info)
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +0100171{
Vidhya Sudhan Loganathan84ce1f92018-04-25 13:00:09 +0100172 const PadStrideInfo &conv_info = winograd_info.convolution_info;
173 const Size2D kernel_dims = winograd_info.kernel_size;
174
175 // Number of tiles along the X and Y direction
Vidhya Sudhan Loganathancb0010b2018-05-11 16:23:53 +0100176 const unsigned int num_tiles_x = std::ceil((winograd_info.input_dimensions.x() - (kernel_dims.width - 1) + conv_info.pad_left() + conv_info.pad_right()) / static_cast<float>
177 (winograd_info.output_tile_size.width));
178 const unsigned int num_tiles_y = std::ceil((winograd_info.input_dimensions.y() - (kernel_dims.height - 1) + conv_info.pad_top() + conv_info.pad_bottom()) / static_cast<float>
179 (winograd_info.output_tile_size.height));
Vidhya Sudhan Loganathan84ce1f92018-04-25 13:00:09 +0100180 const Size2D num_tiles = Size2D(num_tiles_x, num_tiles_y);
181
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +0100182 ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(input);
183 ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(output);
184 ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input, 1, DataType::F32);
185 ARM_COMPUTE_RETURN_ERROR_ON(input->dimension(1) != num_tiles.area());
186 ARM_COMPUTE_RETURN_ERROR_ON_MSG((kernel_dims.width != 3U && kernel_dims.width != 5U), "Winograd output transform only supports 3x3 and 5x5 kernels");
187 ARM_COMPUTE_RETURN_ERROR_ON_MSG((kernel_dims.width != kernel_dims.height), "Winograd output transform only supports 3x3 and 5x5 kernels");
188 ARM_COMPUTE_RETURN_ERROR_ON_MSG(((input->dimension(2) != size_t(16U)) && (input->dimension(2) != size_t(36U))), "Only 2x2 and 4x4 output tile is supported");
189 ARM_COMPUTE_UNUSED(kernel_dims);
190 if(bias != nullptr)
191 {
192 ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DATA_TYPES(input, bias);
193 ARM_COMPUTE_RETURN_ERROR_ON(input->dimension(0) != bias->dimension(0));
194 ARM_COMPUTE_RETURN_ERROR_ON(bias->num_dimensions() != size_t(1));
195 }
196
197 // Checks performed when output is configured
198 if(output->total_size() != 0)
199 {
Vidhya Sudhan Loganathan84ce1f92018-04-25 13:00:09 +0100200 const TensorInfo tensor_info_output = input->clone()->set_tensor_shape(arm_compute::misc::shape_calculator::compute_winograd_output_transform_shape(*input, winograd_info));
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +0100201 ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_SHAPES(output, &tensor_info_output);
202 ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DATA_TYPES(input, output);
203 }
204 return Status{};
205}
206
Vidhya Sudhan Loganathan84ce1f92018-04-25 13:00:09 +0100207std::pair<Status, Window> validate_and_configure_window_winograd_output_trans(ITensorInfo *input, ITensorInfo *bias, ITensorInfo *output, const WinogradInfo &winograd_info)
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +0100208{
209 // Output tensor auto initialization if not yet initialized
Vidhya Sudhan Loganathan84ce1f92018-04-25 13:00:09 +0100210 auto_init_if_empty(*output, input->clone()->set_tensor_shape(arm_compute::misc::shape_calculator::compute_winograd_output_transform_shape(*input, winograd_info)));
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +0100211
212 constexpr unsigned int num_elems_processed_per_iteration = 1;
213
214 Window win = calculate_max_window(*input, Steps(num_elems_processed_per_iteration));
215 bool window_changed = false;
216
217 AccessWindowRectangle input_access(input, 0, 0, num_elems_processed_per_iteration, num_elems_processed_per_iteration);
218 AccessWindowStatic output_access(output, 0, 0, ceil_to_multiple(output->dimension(0), 2), ceil_to_multiple(output->dimension(1), 2));
219
220 if(bias != nullptr)
221 {
222 AccessWindowStatic bias_access(bias, 0, 0, bias->dimension(0), bias->dimension(1));
223 window_changed = update_window_and_padding(win, input_access, bias_access, output_access);
224 }
225 else
226 {
227 window_changed = update_window_and_padding(win, input_access, output_access);
228 }
229 output->set_valid_region(ValidRegion(Coordinates(), output->tensor_shape()));
230
231 Status err = (window_changed) ? ARM_COMPUTE_CREATE_ERROR(ErrorCode::RUNTIME_ERROR, "Insufficient Padding!") : Status{};
232 return std::make_pair(err, win);
233}
234} // namespace
Pablo Tellof6c572c2018-02-14 12:47:30 +0000235template <typename TIn, typename TOut, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
236NEWinogradLayerBatchedGEMMKernel<TIn, TOut, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::NEWinogradLayerBatchedGEMMKernel()
Pablo Tello52140b42018-01-30 14:48:11 +0000237 : _gemms()
Pablo Tello3d4968a2017-12-04 15:03:35 +0000238{
239}
240
Pablo Tellof6c572c2018-02-14 12:47:30 +0000241template <typename TIn, typename TOut, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
242void NEWinogradLayerBatchedGEMMKernel<TIn, TOut, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::configure(
Pablo Tello52140b42018-01-30 14:48:11 +0000243 const unsigned int n_gemms,
244 const int M, const int K, const int N,
Pablo Tellof6c572c2018-02-14 12:47:30 +0000245 const int a_matrix_stride,
246 const int a_row_stride,
247 const int b_matrix_stride,
248 const int b_row_stride,
249 const int c_matrix_stride,
250 const int c_row_stride,
251 const TIn *const a_ptr,
252 const TIn *const b_ptr,
253 TOut *const c_ptr)
Pablo Tello3d4968a2017-12-04 15:03:35 +0000254{
Pablo Tello52140b42018-01-30 14:48:11 +0000255 _gemms = support::cpp14::make_unique<MultiGEMM>(n_gemms, M, K, N, a_matrix_stride, a_row_stride, b_matrix_stride, b_row_stride, c_matrix_stride, c_row_stride, a_ptr, b_ptr, c_ptr);
Pablo Tello02541fb2017-12-15 09:48:59 +0000256 Window win;
Pablo Tello52140b42018-01-30 14:48:11 +0000257 auto win_last = _gemms->get_window();
Pablo Tello9ceebbe2018-01-10 16:44:13 +0000258 win.set(Window::DimX, Window::Dimension(0, win_last, 1));
Pablo Tello89519332017-11-17 11:52:36 +0000259 INEKernel::configure(win);
260}
261
Pablo Tellof6c572c2018-02-14 12:47:30 +0000262template <typename TIn, typename TOut, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
263void NEWinogradLayerBatchedGEMMKernel<TIn, TOut, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::run(const Window &window, const ThreadInfo &info)
Pablo Tello89519332017-11-17 11:52:36 +0000264{
Pablo Tello89519332017-11-17 11:52:36 +0000265 ARM_COMPUTE_UNUSED(info);
266 ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL(this);
Pablo Tello02541fb2017-12-15 09:48:59 +0000267 const size_t first_gemm = window.x().start();
268 const size_t last_gemm = window.x().end();
Pablo Tello52140b42018-01-30 14:48:11 +0000269 _gemms->run(first_gemm, last_gemm);
Pablo Tello89519332017-11-17 11:52:36 +0000270}
Pablo Tellod6ca4782018-01-23 09:36:04 +0000271
Pablo Tellof6c572c2018-02-14 12:47:30 +0000272template <typename TIn, typename TOut, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
273unsigned int NEWinogradLayerBatchedGEMMKernel<TIn, TOut, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::get_number_gemms() const
274{
275 return WinogradBase::N_GEMMS;
276}
277
278template <typename TIn, typename TOut, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
279int NEWinogradLayerBatchedGEMMKernel<TIn, TOut, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::get_output_tile_rows() const
280{
281 return _output_tile_rows;
282}
283
284template <typename TIn, typename TOut, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
285int NEWinogradLayerBatchedGEMMKernel<TIn, TOut, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::get_output_tile_cols() const
286{
287 return _output_tile_cols;
288}
289
290template <typename TIn, typename TOut, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
291int NEWinogradLayerBatchedGEMMKernel<TIn, TOut, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::get_number_blocks() const
292{
293 return WinogradConv::N_BLOCK;
294}
295
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +0100296template <typename TIn, typename TOut, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
297Status NEWinogradLayerBatchedGEMMKernel<TIn, TOut, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::validate(const ITensorInfo *a, const ITensorInfo *b, const ITensor *c,
298 const ITensorInfo *output, const float alpha, const float beta, const GEMMInfo &gemm_info)
299{
300 ARM_COMPUTE_RETURN_ON_ERROR(validate_arguments_winograd_gemm(a, b, c, output, alpha, beta, gemm_info));
301 return Status{};
302}
303
Pablo Tellof6c572c2018-02-14 12:47:30 +0000304template class NEWinogradLayerBatchedGEMMKernel<float, float, 2, 2, 3, 3>;
Vidhya Sudhan Loganathancb0010b2018-05-11 16:23:53 +0100305template class NEWinogradLayerBatchedGEMMKernel<float, float, 4, 4, 3, 3>;
Pablo Tellof6c572c2018-02-14 12:47:30 +0000306template class NEWinogradLayerBatchedGEMMKernel<float, float, 2, 2, 5, 5>;
Pablo Tellod6ca4782018-01-23 09:36:04 +0000307
308// Weights transform
309
Pablo Tellof6c572c2018-02-14 12:47:30 +0000310template <typename T, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
Pablo Tello7df27862018-05-30 11:44:26 +0100311unsigned int NEWinogradLayerTransformWeightsKernel<T, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::get_weight_storage_size(int num_output_channels, int num_input_channels) const
Pablo Tellod6ca4782018-01-23 09:36:04 +0000312{
Pablo Tello7df27862018-05-30 11:44:26 +0100313 const KernelShape shape(num_output_channels, KernelRows, KernelCols, num_input_channels);
Pablo Tello52140b42018-01-30 14:48:11 +0000314 return static_cast<unsigned int>(
Pablo Tellof6c572c2018-02-14 12:47:30 +0000315 // WinogradConv returns the size in bytes, we divide by `sizeof(T)` to express that in units of T
316 WinogradConv::get_kernel_storage_size(shape) / sizeof(T));
Pablo Tello52140b42018-01-30 14:48:11 +0000317}
318
Pablo Tellof6c572c2018-02-14 12:47:30 +0000319template <typename T, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
320NEWinogradLayerTransformWeightsKernel<T, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::NEWinogradLayerTransformWeightsKernel()
Pablo Tello7df27862018-05-30 11:44:26 +0100321 : _weights_hwio(nullptr), _output(nullptr), _matrix_stride(0), _num_output_channels(0), _num_input_channels(0)
322
Pablo Tello52140b42018-01-30 14:48:11 +0000323{
324}
325
Pablo Tellof6c572c2018-02-14 12:47:30 +0000326template <typename T, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
327int NEWinogradLayerTransformWeightsKernel<T, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::get_matrix_stride(const KernelShape &kernel_shape) const
328{
329 return WinogradConv::get_kernel_matrix_stride(kernel_shape);
330}
331
332template <typename T, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
333void NEWinogradLayerTransformWeightsKernel<T, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::configure(
Pablo Tello52140b42018-01-30 14:48:11 +0000334 const ITensor *weights_hwio,
Pablo Tellof6c572c2018-02-14 12:47:30 +0000335 T *const output,
Pablo Tello7df27862018-05-30 11:44:26 +0100336 const int matrix_stride, /** Stride across matrices in the output. */
337 const int num_output_channels, /** Number of filters. */
338 const int num_input_channels) /** Number of channels in each filter. */
Pablo Tello52140b42018-01-30 14:48:11 +0000339{
Pablo Tello7df27862018-05-30 11:44:26 +0100340 _weights_hwio = weights_hwio;
341 _output = output;
342 _matrix_stride = matrix_stride;
343 _num_output_channels = num_output_channels;
344 _num_input_channels = num_input_channels;
345
346 const int matrix_row_stride = roundup(num_output_channels, WinogradConv::N_BLOCK);
347 WeightsTransform transform(nullptr, output, matrix_stride, matrix_row_stride, num_output_channels, num_input_channels);
348 Window win;
349 auto win_last = transform.get_window();
Pablo Tellod6ca4782018-01-23 09:36:04 +0000350 win.set(Window::DimX, Window::Dimension(0, win_last, 1));
351 INEKernel::configure(win);
352}
353
Pablo Tellof6c572c2018-02-14 12:47:30 +0000354template <typename T, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
355void NEWinogradLayerTransformWeightsKernel<T, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::run(const Window &window, const ThreadInfo &info)
Pablo Tellod6ca4782018-01-23 09:36:04 +0000356{
357 ARM_COMPUTE_UNUSED(info);
358 ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL(this);
Pablo Tello7df27862018-05-30 11:44:26 +0100359
360 const int matrix_row_stride = roundup(_num_output_channels, WinogradConv::N_BLOCK);
361 WeightsTransform transform(reinterpret_cast<T *>(_weights_hwio->buffer()), _output, _matrix_stride, matrix_row_stride, _num_output_channels, _num_input_channels);
362 const size_t fst = window.x().start();
363 const size_t lst = window.x().end();
364 transform.run(fst, lst);
Pablo Tellod6ca4782018-01-23 09:36:04 +0000365}
366
Pablo Tellof6c572c2018-02-14 12:47:30 +0000367template <typename T, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
368bool NEWinogradLayerTransformWeightsKernel<T, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::is_parallelisable() const
Pablo Tellod6ca4782018-01-23 09:36:04 +0000369{
370 return false;
371}
372
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +0100373template <typename T, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
Vidhya Sudhan Loganathan84ce1f92018-04-25 13:00:09 +0100374Status NEWinogradLayerTransformWeightsKernel<T, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::validate(const ITensorInfo *input, const ITensorInfo *output,
375 const WinogradInfo &winograd_info)
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +0100376{
Vidhya Sudhan Loganathan84ce1f92018-04-25 13:00:09 +0100377 ARM_COMPUTE_RETURN_ON_ERROR(validate_arguments_winograd_weight_trans(input, output, winograd_info));
378 ARM_COMPUTE_RETURN_ON_ERROR(validate_and_configure_window_winograd_weight_trans(input->clone().get(), output->clone().get(), winograd_info).first);
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +0100379 return Status{};
380}
381
Pablo Tellof6c572c2018-02-14 12:47:30 +0000382template class NEWinogradLayerTransformWeightsKernel<float, 2, 2, 3, 3>;
Vidhya Sudhan Loganathancb0010b2018-05-11 16:23:53 +0100383template class NEWinogradLayerTransformWeightsKernel<float, 4, 4, 3, 3>;
Pablo Tellof6c572c2018-02-14 12:47:30 +0000384template class NEWinogradLayerTransformWeightsKernel<float, 2, 2, 5, 5>;
Pablo Tello52140b42018-01-30 14:48:11 +0000385
Pablo Tellod6ca4782018-01-23 09:36:04 +0000386// Input transform
387
Pablo Tellof6c572c2018-02-14 12:47:30 +0000388template <typename T, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
389unsigned int NEWinogradLayerTransformInputKernel<T, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::get_input_storage_size(
Pablo Tello7df27862018-05-30 11:44:26 +0100390 int num_batches, /* Number of batches in the input tensor. */
391 int num_channels, /* Number of feature maps in the input tensor. */
392 int num_rows, /* Number of rows in each feature map. */
393 int num_cols, /* Number of columns in each feature map. */
394 bool same_padding /* Use "SAME" padding, otherwise use "VALID". */
Pablo Tellof6c572c2018-02-14 12:47:30 +0000395) const
Pablo Tellod6ca4782018-01-23 09:36:04 +0000396{
Pablo Tello52140b42018-01-30 14:48:11 +0000397 // Construct shapes for the input and kernel tensors.
Pablo Tello7df27862018-05-30 11:44:26 +0100398 const Tensor4DShape input_shape(num_batches, num_rows, num_cols, num_channels);
399 const KernelShape kern_shape(1, KernelRows, KernelCols, num_channels);
Pablo Tello52140b42018-01-30 14:48:11 +0000400 const PaddingType padding = (same_padding) ? PADDING_SAME : PADDING_VALID;
401 // Return the size, converted into units of TIn
Pablo Tellof6c572c2018-02-14 12:47:30 +0000402 return static_cast<unsigned int>(WinogradConv::get_input_storage_size(kern_shape, input_shape, padding) / sizeof(T));
Pablo Tello52140b42018-01-30 14:48:11 +0000403}
404
Pablo Tellof6c572c2018-02-14 12:47:30 +0000405template <typename T, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
406int NEWinogradLayerTransformInputKernel<T, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::get_matrix_stride(
407 const KernelShape &kernel_shape, const Tensor4DShape &input_shape, const PaddingType padding_type) const
408{
409 return WinogradConv::get_input_matrix_stride(kernel_shape, input_shape, padding_type);
410}
411
412template <typename T, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
413NEWinogradLayerTransformInputKernel<T, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::NEWinogradLayerTransformInputKernel()
Pablo Tello7df27862018-05-30 11:44:26 +0100414 : _input_nhwc(), _num_batches(0), _num_rows(0), _num_cols(0), _num_channels(0), _padding(), _output(nullptr), _matrix_stride(0)
Pablo Tello52140b42018-01-30 14:48:11 +0000415{
416}
417
Pablo Tellof6c572c2018-02-14 12:47:30 +0000418template <typename T, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
419void NEWinogradLayerTransformInputKernel<T, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::configure(
Pablo Tello7df27862018-05-30 11:44:26 +0100420 const ITensor *input_nhwc,
421 const int num_batches, /* Number of batches in input tensor. */
422 const int num_rows, /* Number of rows in input tensor. */
423 const int num_cols, /* Number of columns in input tensor. */
424 const int num_channels, /* Number of channels in input tensor. */
425 const PaddingType padding, /* Padding type. */
426 T *const output, /* Base of output matrices. */
427 const int matrix_stride) /* Stride between output matrices. */
Pablo Tello52140b42018-01-30 14:48:11 +0000428{
Pablo Tello7df27862018-05-30 11:44:26 +0100429 _input_nhwc = input_nhwc;
430 _num_batches = num_batches;
431 _num_rows = num_rows;
432 _num_cols = num_cols;
433 _num_channels = num_channels;
434 _padding = padding;
435 _output = output;
436 _matrix_stride = matrix_stride;
437 InputTransform transform(nullptr, num_batches, num_rows, num_cols, num_channels, padding, output, matrix_stride, num_channels);
438 Window win;
439 auto win_last = transform.get_window();
Pablo Tellod6ca4782018-01-23 09:36:04 +0000440 win.set(Window::DimX, Window::Dimension(0, win_last, 1));
441 INEKernel::configure(win);
442}
443
Pablo Tellof6c572c2018-02-14 12:47:30 +0000444template <typename T, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
445void NEWinogradLayerTransformInputKernel<T, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::run(const Window &window, const ThreadInfo &info)
Pablo Tellod6ca4782018-01-23 09:36:04 +0000446{
447 ARM_COMPUTE_UNUSED(info);
448 ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL(this);
Pablo Tello7df27862018-05-30 11:44:26 +0100449
450 InputTransform input_transform(reinterpret_cast<const T *>(_input_nhwc->buffer()), _num_batches, _num_rows, _num_cols, _num_channels, _padding, _output, _matrix_stride, _num_channels);
451
452 // The code below cannot be moved to configure because biases hasn't been allocated at that point
Pablo Tellod6ca4782018-01-23 09:36:04 +0000453 const size_t fst = window.x().start();
454 const size_t lst = window.x().end();
Pablo Tello7df27862018-05-30 11:44:26 +0100455 input_transform.run(fst, lst);
Pablo Tellod6ca4782018-01-23 09:36:04 +0000456}
Pablo Tello52140b42018-01-30 14:48:11 +0000457
Pablo Tellof6c572c2018-02-14 12:47:30 +0000458template <typename T, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
Vidhya Sudhan Loganathan84ce1f92018-04-25 13:00:09 +0100459Status NEWinogradLayerTransformInputKernel<T, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::validate(const ITensorInfo *input, const ITensorInfo *output, const WinogradInfo &winograd_info)
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +0100460{
Vidhya Sudhan Loganathan84ce1f92018-04-25 13:00:09 +0100461 ARM_COMPUTE_RETURN_ON_ERROR(validate_arguments_winograd_input_trans(input, output, winograd_info));
462 ARM_COMPUTE_RETURN_ON_ERROR(validate_and_configure_window_winograd_input_trans(input->clone().get(), output->clone().get(), winograd_info).first);
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +0100463
464 return Status{};
465}
466
Pablo Tellof6c572c2018-02-14 12:47:30 +0000467template class NEWinogradLayerTransformInputKernel<float, 2, 2, 3, 3>;
Vidhya Sudhan Loganathancb0010b2018-05-11 16:23:53 +0100468template class NEWinogradLayerTransformInputKernel<float, 4, 4, 3, 3>;
Pablo Tellof6c572c2018-02-14 12:47:30 +0000469template class NEWinogradLayerTransformInputKernel<float, 2, 2, 5, 5>;
Pablo Tello52140b42018-01-30 14:48:11 +0000470
Pablo Tellod6ca4782018-01-23 09:36:04 +0000471// Output transform
Pablo Tello52140b42018-01-30 14:48:11 +0000472
Pablo Tellof6c572c2018-02-14 12:47:30 +0000473template <typename T, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
474unsigned int NEWinogradLayerTransformOutputKernel<T, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::get_output_storage_size(
Pablo Tello7df27862018-05-30 11:44:26 +0100475 int num_batches, /* Number of batches in the output tensor. */
476 int num_rows, /* Number of rows in each feature map of the input tensor. */
477 int num_cols, /* Number of columns in each feature map of the input tensor. */
478 int num_output_channels, /* Number of feature maps in the output tensor. */
479 bool same_padding /* Use "SAME" padding, otherwise use "VALID". */
Pablo Tellof6c572c2018-02-14 12:47:30 +0000480) const
Pablo Tello52140b42018-01-30 14:48:11 +0000481{
482 // Construct shapes for the input and kernel tensors.
Pablo Tello7df27862018-05-30 11:44:26 +0100483 const Tensor4DShape input_shape(num_batches, num_rows, num_cols, 1);
484 const KernelShape kern_shape(num_output_channels, KernelRows, KernelCols, 1);
Pablo Tello52140b42018-01-30 14:48:11 +0000485 const PaddingType padding = (same_padding) ? PADDING_SAME : PADDING_VALID;
486
487 // Return the size, converted into units of TOut
488 return static_cast<unsigned int>(
Pablo Tellof6c572c2018-02-14 12:47:30 +0000489 WinogradConv::get_output_storage_size(kern_shape, input_shape, padding) / sizeof(T));
Pablo Tello52140b42018-01-30 14:48:11 +0000490}
491
Pablo Tellof6c572c2018-02-14 12:47:30 +0000492template <typename T, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
493NEWinogradLayerTransformOutputKernel<T, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::NEWinogradLayerTransformOutputKernel()
Pablo Tello7df27862018-05-30 11:44:26 +0100494 : _biases(nullptr), _output_workspace(nullptr), _matrix_stride(0), _matrix_row_stride(0), _output_nhwc(nullptr), _num_batches(0), _num_rows(0), _num_cols(0), _num_channels(0)
Pablo Tellod6ca4782018-01-23 09:36:04 +0000495{
496}
497
Pablo Tellof6c572c2018-02-14 12:47:30 +0000498template <typename T, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
499int NEWinogradLayerTransformOutputKernel<T, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::get_matrix_stride(
500 const KernelShape &kernel_shape, const Tensor4DShape &input_shape, const PaddingType padding_type) const
501{
502 return WinogradConv::get_output_matrix_stride(kernel_shape, input_shape, padding_type);
503}
504template <typename T, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
505Tensor4DShape NEWinogradLayerTransformOutputKernel<T, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::get_output_shape(
506 const KernelShape &kernel_shape, const Tensor4DShape &in_shape, const PaddingType padding) const
507{
508 return WinogradConv::get_output_shape(kernel_shape, in_shape, padding);
509}
510
511template <typename T, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
512void NEWinogradLayerTransformOutputKernel<T, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::configure(
513 const ITensor *biases,
514 const T *const output_workingspace,
515 const int matrix_stride,
Pablo Tello7df27862018-05-30 11:44:26 +0100516 ITensor *const output_nhwc,
517 const int num_batches,
518 const int num_rows,
519 const int num_cols,
520 const int num_channels)
Pablo Tellod6ca4782018-01-23 09:36:04 +0000521{
Pablo Tellod6ca4782018-01-23 09:36:04 +0000522 _biases = biases;
523 _output_workspace = output_workingspace;
524 _matrix_stride = matrix_stride;
Pablo Tello7df27862018-05-30 11:44:26 +0100525 _matrix_row_stride = roundup(num_channels, WinogradConv::N_BLOCK);
526 _output_nhwc = output_nhwc;
527 _num_batches = num_batches;
528 _num_rows = num_rows;
529 _num_cols = num_cols;
530 _num_channels = num_channels;
Pablo Tellod6ca4782018-01-23 09:36:04 +0000531 // We don't have the biases buffer at this stage as it hasn't been allocated, we pass in nullptr OutputTransform is only used here to compute the window
Pablo Tello7df27862018-05-30 11:44:26 +0100532 OutputTransform output_transform(_output_workspace, _matrix_stride, _matrix_row_stride, nullptr, nullptr, _num_batches, _num_rows, _num_cols, _num_channels);
Pablo Tello7282d562018-06-14 15:35:49 +0100533
534 Window win;
535 auto win_last = output_transform.get_window();
Pablo Tellod6ca4782018-01-23 09:36:04 +0000536 win.set(Window::DimX, Window::Dimension(0, win_last, 1));
Pablo Tello7282d562018-06-14 15:35:49 +0100537
538 _output_nhwc->info()->set_valid_region(ValidRegion(Coordinates(), _output_nhwc->info()->tensor_shape()));
539
Pablo Tellod6ca4782018-01-23 09:36:04 +0000540 INEKernel::configure(win);
541}
542
Pablo Tellof6c572c2018-02-14 12:47:30 +0000543template <typename T, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
544void NEWinogradLayerTransformOutputKernel<T, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::run(const Window &window, const ThreadInfo &info)
Pablo Tellod6ca4782018-01-23 09:36:04 +0000545{
546 ARM_COMPUTE_UNUSED(info);
547 ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL(this);
Pablo Tellod6ca4782018-01-23 09:36:04 +0000548 ARM_COMPUTE_ERROR_ON_NULLPTR(_output_workspace);
Pablo Tello7df27862018-05-30 11:44:26 +0100549 ARM_COMPUTE_ERROR_ON_NULLPTR(_output_nhwc);
Pablo Tellod6ca4782018-01-23 09:36:04 +0000550
Pablo Tellod6ca4782018-01-23 09:36:04 +0000551 OutputTransform output_transform(_output_workspace, _matrix_stride, _matrix_row_stride,
Pablo Tello7df27862018-05-30 11:44:26 +0100552 (_biases ? reinterpret_cast<T *>(_biases->buffer()) : nullptr), reinterpret_cast<T *>(_output_nhwc->buffer()),
Pablo Tello7282d562018-06-14 15:35:49 +0100553 _num_batches, _num_rows, _num_cols, _num_channels, 0, _output_nhwc->info()->strides_in_bytes()[2] / sizeof(T), _output_nhwc->info()->strides_in_bytes()[1] / sizeof(T));
Pablo Tellod6ca4782018-01-23 09:36:04 +0000554
555 // The code below cannot be moved to configure because biases hasn't been allocated at that point
556 const size_t fst = window.x().start();
557 const size_t lst = window.x().end();
558 output_transform.run(fst, lst);
559}
560
Pablo Tellof6c572c2018-02-14 12:47:30 +0000561template <typename T, int OutputTileRows, int OutputTileCols, int KernelRows, int KernelCols>
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +0100562Status NEWinogradLayerTransformOutputKernel<T, OutputTileRows, OutputTileCols, KernelRows, KernelCols>::validate(const ITensorInfo *input, const ITensorInfo *bias, const ITensorInfo *output,
Vidhya Sudhan Loganathan84ce1f92018-04-25 13:00:09 +0100563 const WinogradInfo &winograd_info)
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +0100564{
Vidhya Sudhan Loganathan84ce1f92018-04-25 13:00:09 +0100565 ARM_COMPUTE_RETURN_ON_ERROR(validate_arguments_winograd_output_trans(input, (bias != nullptr ? bias->clone().get() : nullptr), output, winograd_info));
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +0100566 ARM_COMPUTE_RETURN_ON_ERROR(validate_and_configure_window_winograd_output_trans(input->clone().get(), (bias != nullptr ? bias->clone().get() : nullptr), output->clone().get(),
Vidhya Sudhan Loganathan84ce1f92018-04-25 13:00:09 +0100567 winograd_info)
Vidhya Sudhan Loganathan3ca97862018-04-23 08:20:04 +0100568 .first);
569
570 return Status{};
571}
572
Pablo Tellof6c572c2018-02-14 12:47:30 +0000573template class NEWinogradLayerTransformOutputKernel<float, 2, 2, 3, 3>;
Vidhya Sudhan Loganathancb0010b2018-05-11 16:23:53 +0100574template class NEWinogradLayerTransformOutputKernel<float, 4, 4, 3, 3>;
Pablo Tellof6c572c2018-02-14 12:47:30 +0000575template class NEWinogradLayerTransformOutputKernel<float, 2, 2, 5, 5>;
Pablo Tello52140b42018-01-30 14:48:11 +0000576
Pablo Tello89519332017-11-17 11:52:36 +0000577} // namespace arm_compute