blob: 4d3ec46e34647ef14671cddfb867b65782bf41da [file] [log] [blame]
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001/*
Sanghoon Leef47bfb92018-01-23 15:16:47 +00002 * Copyright (c) 2017-2018 ARM Limited.
Anthony Barbier6ff3b192017-09-04 18:44:23 +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#include "arm_compute/core/NEON/kernels/NELocallyConnectedMatrixMultiplyKernel.h"
25
26#include "arm_compute/core/AccessWindowTranspose.h"
Anthony Barbiereaefd002018-07-20 17:49:35 +010027#include "arm_compute/core/CPP/Validate.h"
Anthony Barbier6ff3b192017-09-04 18:44:23 +010028#include "arm_compute/core/Error.h"
29#include "arm_compute/core/Helpers.h"
30#include "arm_compute/core/IAccessWindow.h"
31#include "arm_compute/core/ITensor.h"
32#include "arm_compute/core/NEON/NEFixedPoint.h"
33#include "arm_compute/core/TensorInfo.h"
34#include "arm_compute/core/Types.h"
35#include "arm_compute/core/Utils.h"
36#include "arm_compute/core/Validate.h"
37#include "arm_compute/core/Window.h"
38
39#include <arm_neon.h>
40#include <cstddef>
41#include <cstdint>
42#include <tuple>
43
44using namespace arm_compute;
45
46namespace arm_compute
47{
48class Coordinates;
49} // namespace arm_compute
50
51namespace
52{
Moritz Pflanzerc186b572017-09-07 09:48:04 +010053void vector_matrix_multiply_f16(const ITensor *input0, const ITensor *input1, ITensor *output, const Window &window, const ThreadInfo &info)
Pablo Telloafde7322017-07-25 09:19:46 +010054{
Ioan-Cristian Szabo5edbd1c2017-11-13 13:34:08 +000055#ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC
Pablo Telloafde7322017-07-25 09:19:46 +010056 const auto width_matrix_b = static_cast<int>(output->info()->dimension(0));
57 const auto in_b_stride = static_cast<int>(input1->info()->strides_in_bytes()[1] / data_size_from_type(input1->info()->data_type()));
58 const auto num_elems_vec_a = static_cast<int>(input0->info()->dimension(0));
59
60 // The implementation computes 16 elements per iteration
Moritz Pflanzerc186b572017-09-07 09:48:04 +010061 const int window_start_x = 16 * info.thread_id;
62 const int window_step_x = 16 * info.num_threads;
Pablo Telloafde7322017-07-25 09:19:46 +010063 // Make sure (window_end_x - window_start_x) is a multiple of window_step_x
64 const int window_end_x = ceil_to_multiple(width_matrix_b - window_start_x, window_step_x) + window_start_x;
65
66 Window win_out(window);
67 win_out.set(Window::DimX, Window::Dimension(window_start_x, window_end_x, window_step_x));
68
69 Window win_a(window);
70 win_a.set(Window::DimX, Window::Dimension(0, 1, 1));
71
72 Iterator ina(input0, win_a);
73 Iterator out(output, win_out);
74
75 execute_window_loop(win_out, [&](const Coordinates & id)
76 {
77 if(id.x() > width_matrix_b)
78 {
79 return;
80 }
81
82 float16x8_t acc0 = vdupq_n_f16(0.f);
83 float16x8_t acc1 = vdupq_n_f16(0.f);
84 float16x8_t acc2 = vdupq_n_f16(0.f);
85 float16x8_t acc3 = vdupq_n_f16(0.f);
86
87 auto vec_a = reinterpret_cast<const float16_t *>(ina.ptr());
88 auto matrix_b = reinterpret_cast<const float16_t *>(input1->ptr_to_element(Coordinates(id[0], 0, id[1])));
89
90 const float16_t *vec_a_end_addr = vec_a + num_elems_vec_a;
91
92 for(; vec_a <= (vec_a_end_addr - 4);)
93 {
94 const float16x4_t a0l = vld1_f16(vec_a);
95
96 float16x8_t b00 = vld1q_f16(matrix_b);
97 float16x8_t b01 = vld1q_f16(matrix_b + 8 + 0 * in_b_stride);
98 float16x8_t b02 = vld1q_f16(matrix_b + 16 + 0 * in_b_stride);
99 float16x8_t b03 = vld1q_f16(matrix_b + 24 + 0 * in_b_stride);
100
101 float16x8_t b10 = vld1q_f16(matrix_b + 0 + 1 * in_b_stride);
102 float16x8_t b11 = vld1q_f16(matrix_b + 8 + 1 * in_b_stride);
103 float16x8_t b12 = vld1q_f16(matrix_b + 16 + 1 * in_b_stride);
104 float16x8_t b13 = vld1q_f16(matrix_b + 24 + 1 * in_b_stride);
105
106 acc0 = vaddq_f16(acc0, vmulq_lane_f16(b00, a0l, 0));
107 acc1 = vaddq_f16(acc1, vmulq_lane_f16(b01, a0l, 0));
108 acc2 = vaddq_f16(acc2, vmulq_lane_f16(b02, a0l, 0));
109 acc3 = vaddq_f16(acc3, vmulq_lane_f16(b03, a0l, 0));
110 acc0 = vaddq_f16(acc0, vmulq_lane_f16(b10, a0l, 1));
111 acc1 = vaddq_f16(acc1, vmulq_lane_f16(b11, a0l, 1));
112 acc2 = vaddq_f16(acc2, vmulq_lane_f16(b12, a0l, 1));
113 acc3 = vaddq_f16(acc3, vmulq_lane_f16(b13, a0l, 1));
114
115 matrix_b += 2 * in_b_stride;
116
117 b00 = vld1q_f16(matrix_b);
118 b01 = vld1q_f16(matrix_b + 8 + 0 * in_b_stride);
119 b02 = vld1q_f16(matrix_b + 16 + 0 * in_b_stride);
120 b03 = vld1q_f16(matrix_b + 24 + 0 * in_b_stride);
121 b10 = vld1q_f16(matrix_b + 0 + 1 * in_b_stride);
122 b11 = vld1q_f16(matrix_b + 8 + 1 * in_b_stride);
123 b12 = vld1q_f16(matrix_b + 16 + 1 * in_b_stride);
124 b13 = vld1q_f16(matrix_b + 24 + 1 * in_b_stride);
125
126 acc0 = vaddq_f16(acc0, vmulq_lane_f16(b00, a0l, 2));
127 acc1 = vaddq_f16(acc1, vmulq_lane_f16(b01, a0l, 2));
128 acc2 = vaddq_f16(acc2, vmulq_lane_f16(b02, a0l, 2));
129 acc3 = vaddq_f16(acc3, vmulq_lane_f16(b03, a0l, 2));
130 acc0 = vaddq_f16(acc0, vmulq_lane_f16(b10, a0l, 3));
131 acc1 = vaddq_f16(acc1, vmulq_lane_f16(b11, a0l, 3));
132 acc2 = vaddq_f16(acc2, vmulq_lane_f16(b12, a0l, 3));
133 acc3 = vaddq_f16(acc3, vmulq_lane_f16(b13, a0l, 3));
134
135 vec_a += 4;
136 matrix_b += 2 * in_b_stride;
137 }
138
139 for(; vec_a < vec_a_end_addr;)
140 {
141 const float16_t a0 = *vec_a;
142 const float16x8_t b00 = vld1q_f16(matrix_b);
143 const float16x8_t b01 = vld1q_f16(matrix_b + 8 + 0 * in_b_stride);
144 const float16x8_t b02 = vld1q_f16(matrix_b + 16 + 0 * in_b_stride);
145 const float16x8_t b03 = vld1q_f16(matrix_b + 24 + 0 * in_b_stride);
146
147 acc0 = vaddq_f16(acc0, vmulq_n_f16(b00, a0));
148 acc1 = vaddq_f16(acc1, vmulq_n_f16(b01, a0));
149 acc2 = vaddq_f16(acc2, vmulq_n_f16(b02, a0));
150 acc3 = vaddq_f16(acc3, vmulq_n_f16(b03, a0));
151
152 vec_a += 1;
153 matrix_b += in_b_stride;
154 }
155
156 const auto vec_out = reinterpret_cast<float16_t *>(out.ptr());
157
158 vst1q_f16(vec_out + 0, acc0);
159 vst1q_f16(vec_out + 8, acc1);
160 vst1q_f16(vec_out + 16, acc2);
161 vst1q_f16(vec_out + 24, acc3);
162 },
163 ina, out);
Ioan-Cristian Szabo5edbd1c2017-11-13 13:34:08 +0000164#else /* __ARM_FEATURE_FP16_VECTOR_ARITHMETIC */
Pablo Telloafde7322017-07-25 09:19:46 +0100165 ARM_COMPUTE_UNUSED(input0);
166 ARM_COMPUTE_UNUSED(input1);
167 ARM_COMPUTE_UNUSED(output);
168 ARM_COMPUTE_UNUSED(window);
Georgios Pinitas30f02152017-09-27 11:20:48 +0100169 ARM_COMPUTE_UNUSED(info);
Pablo Telloafde7322017-07-25 09:19:46 +0100170 ARM_COMPUTE_ERROR("Not supported, recompile with -march=armv8.2-a+fp16+simd.");
Ioan-Cristian Szabo5edbd1c2017-11-13 13:34:08 +0000171#endif /* __ARM_FEATURE_FP16_VECTOR_ARITHMETIC */
Pablo Telloafde7322017-07-25 09:19:46 +0100172}
173
Moritz Pflanzerc186b572017-09-07 09:48:04 +0100174void vector_matrix_multiply_f32(const ITensor *input0, const ITensor *input1, ITensor *output, const Window &window, const ThreadInfo &info)
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100175{
176 const auto width_matrix_b = static_cast<int>(output->info()->dimension(0));
177 const auto in_b_stride = static_cast<int>(input1->info()->strides_in_bytes()[1] / data_size_from_type(input1->info()->data_type()));
178 const auto num_elems_vec_a = static_cast<int>(input0->info()->dimension(0));
179
180 // The implementation computes 16 elements per iteration
Moritz Pflanzerc186b572017-09-07 09:48:04 +0100181 const int window_start_x = 16 * info.thread_id;
182 const int window_step_x = 16 * info.num_threads;
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100183 // Make sure (window_end_x - window_start_x) is a multiple of window_step_x
184 const int window_end_x = ceil_to_multiple(width_matrix_b - window_start_x, window_step_x) + window_start_x;
185
186 Window win_out(window);
187 win_out.set(Window::DimX, Window::Dimension(window_start_x, window_end_x, window_step_x));
188
189 Window win_a(window);
Sanghoon Leef47bfb92018-01-23 15:16:47 +0000190 win_a.set(Window::DimX, Window::Dimension(0, 0, 0));
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100191
192 Iterator ina(input0, win_a);
193 Iterator out(output, win_out);
194
195 execute_window_loop(win_out, [&](const Coordinates & id)
196 {
197 if(id.x() > width_matrix_b)
198 {
199 return;
200 }
201
202 float32x4_t acc0 = vdupq_n_f32(0.f);
203 float32x4_t acc1 = vdupq_n_f32(0.f);
204 float32x4_t acc2 = vdupq_n_f32(0.f);
205 float32x4_t acc3 = vdupq_n_f32(0.f);
206
207 auto vec_a = reinterpret_cast<const float *>(ina.ptr());
208 auto matrix_b = reinterpret_cast<const float *>(input1->ptr_to_element(Coordinates(id[0], 0, id[1])));
209
210#if __arm__
211 asm volatile("PLD [%0, #128*4]" ::"r"(reinterpret_cast<const uint8_t *>(vec_a)));
212 asm volatile("PLD [%0, #128*4]" ::"r"(reinterpret_cast<const uint8_t *>(matrix_b)));
213 asm volatile("PLD [%0, #128*4]" ::"r"(reinterpret_cast<const uint8_t *>(matrix_b + in_b_stride)));
Anthony Barbierac69aa12017-07-03 17:39:37 +0100214#endif /* __arm__ */
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100215
216 const float *vec_a_end_addr = vec_a + num_elems_vec_a;
217
218 for(; vec_a <= (vec_a_end_addr - 4);)
219 {
220 float32x2_t a0l = vld1_f32(vec_a);
221
222 float32x4_t b00 = vld1q_f32(matrix_b + 0 + 0 * in_b_stride);
223 float32x4_t b01 = vld1q_f32(matrix_b + 4 + 0 * in_b_stride);
224 float32x4_t b02 = vld1q_f32(matrix_b + 8 + 0 * in_b_stride);
225 float32x4_t b03 = vld1q_f32(matrix_b + 12 + 0 * in_b_stride);
226
227 float32x4_t b10 = vld1q_f32(matrix_b + 0 + 1 * in_b_stride);
228 float32x4_t b11 = vld1q_f32(matrix_b + 4 + 1 * in_b_stride);
229 float32x4_t b12 = vld1q_f32(matrix_b + 8 + 1 * in_b_stride);
230 float32x4_t b13 = vld1q_f32(matrix_b + 12 + 1 * in_b_stride);
231
232#if __arm__
233 asm volatile("PLD [%0, #128*4]" ::"r"(reinterpret_cast<const uint8_t *>(vec_a)));
234 asm volatile("PLD [%0, #128*1]" ::"r"(reinterpret_cast<const uint8_t *>(matrix_b + 1 * in_b_stride)));
235 asm volatile("PLD [%0, #128*1]" ::"r"(reinterpret_cast<const uint8_t *>(matrix_b + 2 * in_b_stride)));
236 asm volatile("PLD [%0, #128*1]" ::"r"(reinterpret_cast<const uint8_t *>(matrix_b + 3 * in_b_stride)));
237 asm volatile("PLD [%0, #128*1]" ::"r"(reinterpret_cast<const uint8_t *>(matrix_b + 4 * in_b_stride)));
Sanghoon Leef47bfb92018-01-23 15:16:47 +0000238#endif /* __arm__ */
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100239
240 acc0 = vmlaq_lane_f32(acc0, b00, a0l, 0);
241 acc1 = vmlaq_lane_f32(acc1, b01, a0l, 0);
242 acc2 = vmlaq_lane_f32(acc2, b02, a0l, 0);
243 acc3 = vmlaq_lane_f32(acc3, b03, a0l, 0);
244
245 acc0 = vmlaq_lane_f32(acc0, b10, a0l, 1);
246 acc1 = vmlaq_lane_f32(acc1, b11, a0l, 1);
247 acc2 = vmlaq_lane_f32(acc2, b12, a0l, 1);
248 acc3 = vmlaq_lane_f32(acc3, b13, a0l, 1);
249
250 vec_a += 2;
251 matrix_b += 2 * in_b_stride;
252
253 a0l = vld1_f32(vec_a);
254
255 b00 = vld1q_f32(matrix_b + 0 + 0 * in_b_stride);
256 b01 = vld1q_f32(matrix_b + 4 + 0 * in_b_stride);
257 b02 = vld1q_f32(matrix_b + 8 + 0 * in_b_stride);
258 b03 = vld1q_f32(matrix_b + 12 + 0 * in_b_stride);
259
260 b10 = vld1q_f32(matrix_b + 0 + 1 * in_b_stride);
261 b11 = vld1q_f32(matrix_b + 4 + 1 * in_b_stride);
262 b12 = vld1q_f32(matrix_b + 8 + 1 * in_b_stride);
263 b13 = vld1q_f32(matrix_b + 12 + 1 * in_b_stride);
264
265 acc0 = vmlaq_lane_f32(acc0, b00, a0l, 0);
266 acc1 = vmlaq_lane_f32(acc1, b01, a0l, 0);
267 acc2 = vmlaq_lane_f32(acc2, b02, a0l, 0);
268 acc3 = vmlaq_lane_f32(acc3, b03, a0l, 0);
269
270 acc0 = vmlaq_lane_f32(acc0, b10, a0l, 1);
271 acc1 = vmlaq_lane_f32(acc1, b11, a0l, 1);
272 acc2 = vmlaq_lane_f32(acc2, b12, a0l, 1);
273 acc3 = vmlaq_lane_f32(acc3, b13, a0l, 1);
274
275 vec_a += 2;
276 matrix_b += 2 * in_b_stride;
277 }
278
279 for(; vec_a < vec_a_end_addr;)
280 {
281 const float a0 = *vec_a;
282
283 const float32x4_t b00 = vld1q_f32(matrix_b + 0 + 0 * in_b_stride);
284 const float32x4_t b01 = vld1q_f32(matrix_b + 4 + 0 * in_b_stride);
285 const float32x4_t b02 = vld1q_f32(matrix_b + 8 + 0 * in_b_stride);
286 const float32x4_t b03 = vld1q_f32(matrix_b + 12 + 0 * in_b_stride);
287
288 acc0 = vmlaq_n_f32(acc0, b00, a0);
289 acc1 = vmlaq_n_f32(acc1, b01, a0);
290 acc2 = vmlaq_n_f32(acc2, b02, a0);
291 acc3 = vmlaq_n_f32(acc3, b03, a0);
292
293 vec_a += 1;
294 matrix_b += in_b_stride;
295 }
296
297 const auto vec_out = reinterpret_cast<float *>(out.ptr());
298
299 vst1q_f32(vec_out + 0, acc0);
300 vst1q_f32(vec_out + 4, acc1);
301 vst1q_f32(vec_out + 8, acc2);
302 vst1q_f32(vec_out + 12, acc3);
303 },
304 ina, out);
305}
Alex Gilday27c08ab2018-02-22 11:36:16 +0000306
307Status validate_arguments(const ITensorInfo *input0, const ITensorInfo *input1, const ITensorInfo *output)
308{
Anthony Barbiereaefd002018-07-20 17:49:35 +0100309 ARM_COMPUTE_RETURN_ERROR_ON_CPU_F16_UNSUPPORTED(input0);
Alex Gilday27c08ab2018-02-22 11:36:16 +0000310 ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input0, 1, DataType::F16, DataType::F32);
311 ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input1, 1, DataType::F16, DataType::F32);
312 ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(output, 1, DataType::F16, DataType::F32);
313 ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DATA_TYPES(input0, input1, output);
314 ARM_COMPUTE_RETURN_ERROR_ON(input0->dimension(0) != input1->dimension(1));
315
316 return Status{};
317}
318
319std::tuple<Status, Window> validate_and_configure_window(ITensorInfo *input0, ITensorInfo *input1, ITensorInfo *output)
320{
321 const unsigned int num_elems_processed_per_iteration_x = 16;
322
323 Window win = calculate_max_window(*output, Steps(num_elems_processed_per_iteration_x));
324
325 AccessWindowHorizontal input0_access(input0, 0, num_elems_processed_per_iteration_x);
326 AccessWindowHorizontal input1_access(input1, 0, num_elems_processed_per_iteration_x);
327 AccessWindowHorizontal output_access(output, 0, num_elems_processed_per_iteration_x);
328
329 bool window_changed = update_window_and_padding(win, input0_access, input1_access, output_access);
330
331 output_access.set_valid_region(win, ValidRegion(Coordinates(), output->tensor_shape()));
332
333 Status err = (window_changed) ? ARM_COMPUTE_CREATE_ERROR(ErrorCode::RUNTIME_ERROR, "Insufficient Padding!") : Status{};
334
335 return std::make_tuple(err, win);
336}
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100337} // namespace
338
339NELocallyConnectedMatrixMultiplyKernel::NELocallyConnectedMatrixMultiplyKernel()
340 : _input0(nullptr), _input1(nullptr), _output(nullptr)
341{
342}
343
344void NELocallyConnectedMatrixMultiplyKernel::configure(const ITensor *input0, const ITensor *input1, ITensor *output)
345{
Alex Gilday27c08ab2018-02-22 11:36:16 +0000346 ARM_COMPUTE_ERROR_ON_NULLPTR(input0, input1, output);
347 ARM_COMPUTE_ERROR_THROW_ON(validate_arguments(input0->info(), input1->info(), output->info()));
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100348
349 _input0 = input0;
350 _input1 = input1;
351 _output = output;
352
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100353 // Configure kernel window
Alex Gilday27c08ab2018-02-22 11:36:16 +0000354 auto win_config = validate_and_configure_window(input0->info(), input1->info(), output->info());
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100355
Alex Gilday27c08ab2018-02-22 11:36:16 +0000356 ARM_COMPUTE_ERROR_THROW_ON(std::get<0>(win_config));
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100357
Alex Gilday27c08ab2018-02-22 11:36:16 +0000358 INEKernel::configure(std::get<1>(win_config));
359}
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100360
Alex Gilday27c08ab2018-02-22 11:36:16 +0000361Status NELocallyConnectedMatrixMultiplyKernel::validate(const ITensorInfo *input0, const ITensorInfo *input1, const ITensorInfo *output)
362{
363 ARM_COMPUTE_RETURN_ON_ERROR(validate_arguments(input0, input1, output));
364 ARM_COMPUTE_RETURN_ON_ERROR(std::get<0>(validate_and_configure_window(input0->clone().get(), input1->clone().get(), output->clone().get())));
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100365
Alex Gilday27c08ab2018-02-22 11:36:16 +0000366 return Status{};
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100367}
368
Moritz Pflanzerc186b572017-09-07 09:48:04 +0100369void NELocallyConnectedMatrixMultiplyKernel::run(const Window &window, const ThreadInfo &info)
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100370{
371 ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL(this);
372 ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW(INEKernel::window(), window);
373
Pablo Telloafde7322017-07-25 09:19:46 +0100374 switch(_input0->info()->data_type())
375 {
376 case DataType::F16:
377 {
Moritz Pflanzerc186b572017-09-07 09:48:04 +0100378 vector_matrix_multiply_f16(_input0, _input1, _output, window, info);
Pablo Telloafde7322017-07-25 09:19:46 +0100379 break;
380 }
381 case DataType::F32:
382 {
Moritz Pflanzerc186b572017-09-07 09:48:04 +0100383 vector_matrix_multiply_f32(_input0, _input1, _output, window, info);
Pablo Telloafde7322017-07-25 09:19:46 +0100384 break;
385 }
386 default:
387 {
388 ARM_COMPUTE_ERROR("Data type not supported");
389 break;
390 }
391 }
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100392}