blob: 53a4dca9a37e5662c70e0e7d4f49fbf86166a055 [file] [log] [blame]
Anthony Barbier6ff3b192017-09-04 18:44:23 +01001/*
Isabella Gottardie6630e42018-01-18 15:50:39 +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/CL/kernels/CLIm2ColKernel.h"
25
26#include "arm_compute/core/CL/CLHelpers.h"
27#include "arm_compute/core/CL/CLKernelLibrary.h"
Vidhya Sudhan Loganathanf1f49062018-05-25 13:21:26 +010028#include "arm_compute/core/CL/CLValidate.h"
Anthony Barbier6ff3b192017-09-04 18:44:23 +010029#include "arm_compute/core/CL/ICLTensor.h"
30#include "arm_compute/core/CL/OpenCL.h"
31#include "arm_compute/core/Error.h"
32#include "arm_compute/core/Helpers.h"
Gian Marco Iodice13edbff2017-06-26 17:20:16 +010033#include "arm_compute/core/Size2D.h"
Anthony Barbier6ff3b192017-09-04 18:44:23 +010034#include "arm_compute/core/Types.h"
Gian Marco Iodice13edbff2017-06-26 17:20:16 +010035#include "support/ToolchainSupport.h"
Anthony Barbier6ff3b192017-09-04 18:44:23 +010036
37#include <cmath>
38#include <tuple>
39
40using namespace arm_compute;
41
Georgios Pinitas358ca202017-12-07 16:47:52 +000042namespace
43{
Alex Gilday7da29b62018-03-23 14:16:00 +000044Status validate_arguments(const ITensorInfo *input, const ITensorInfo *output, bool has_bias, const Size2D &dilation)
Georgios Pinitas358ca202017-12-07 16:47:52 +000045{
Vidhya Sudhan Loganathanf1f49062018-05-25 13:21:26 +010046 ARM_COMPUTE_RETURN_ERROR_ON_F16_UNSUPPORTED(input);
Georgios Pinitas358ca202017-12-07 16:47:52 +000047 ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input, 1, DataType::QS8, DataType::QASYMM8, DataType::QS16, DataType::F16, DataType::F32);
Isabella Gottardie6630e42018-01-18 15:50:39 +000048 ARM_COMPUTE_RETURN_ERROR_ON(input->data_type() == DataType::QASYMM8 && has_bias);
Georgios Pinitas358ca202017-12-07 16:47:52 +000049 ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(output);
Alex Gilday7da29b62018-03-23 14:16:00 +000050 ARM_COMPUTE_RETURN_ERROR_ON((dilation.x() < 1) || (dilation.y() < 1));
Georgios Pinitas358ca202017-12-07 16:47:52 +000051
52 // Checks performed when output is configured
53 if(output->total_size() != 0)
54 {
55 ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DATA_TYPES(input, output);
56 ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_FIXED_POINT(input, output);
57 }
58
59 return Status{};
60}
61} // namespace
62
Anthony Barbier6ff3b192017-09-04 18:44:23 +010063CLIm2ColKernel::CLIm2ColKernel()
Georgios Pinitas17812ba2018-06-04 19:27:13 +010064 : _input(nullptr), _output(nullptr), _conv_info(), _convolved_dims(), _num_elems_processed_per_iteration(1), _run_func(nullptr), _kernel_dims()
Anthony Barbier6ff3b192017-09-04 18:44:23 +010065{
66}
67
Alex Gilday7da29b62018-03-23 14:16:00 +000068void CLIm2ColKernel::configure(const ICLTensor *input, ICLTensor *output, const Size2D &kernel_dims, const PadStrideInfo &conv_info, bool has_bias, const Size2D &dilation)
Anthony Barbier6ff3b192017-09-04 18:44:23 +010069{
Georgios Pinitas358ca202017-12-07 16:47:52 +000070 ARM_COMPUTE_ERROR_ON_NULLPTR(input, output);
71
72 // Perform validation step
Alex Gilday7da29b62018-03-23 14:16:00 +000073 ARM_COMPUTE_ERROR_THROW_ON(validate_arguments(input->info(), output->info(), has_bias, dilation));
Anthony Barbier6ff3b192017-09-04 18:44:23 +010074
Gian Marco76faef82018-01-29 12:15:32 +000075 _input = input;
76 _output = output;
Georgios Pinitas17812ba2018-06-04 19:27:13 +010077 _conv_info = conv_info;
Gian Marco76faef82018-01-29 12:15:32 +000078 _kernel_dims = kernel_dims;
Anthony Barbier6ff3b192017-09-04 18:44:23 +010079
Anthony Barbierfcd52fb2017-11-28 10:31:43 +000080 const DataType data_type = input->info()->data_type();
Michalis Spyroua9676112018-02-22 18:07:43 +000081 const GPUTarget gpu_target = get_target();
Anthony Barbier6ff3b192017-09-04 18:44:23 +010082
Georgios Pinitas45bcc3a2017-11-29 11:06:49 +000083 // Create kernel
84 CLBuildOptions build_opts;
85 build_opts.add_option(("-DDATA_TYPE=" + get_cl_type_from_data_type(data_type)));
Gian Marco76faef82018-01-29 12:15:32 +000086 build_opts.add_option("-DELEMENT_SIZE=" + support::cpp11::to_string(input->info()->element_size()));
Georgios Pinitas45bcc3a2017-11-29 11:06:49 +000087 build_opts.add_option_if(has_bias, "-DHAS_BIAS");
88 build_opts.add_option_if(is_data_type_fixed_point(data_type), "-DFIXED_POINT_POSITION=" + support::cpp11::to_string(input->info()->fixed_point_position()));
Gian Marco Iodice368da832017-07-03 12:33:49 +010089
Anthony Barbier6ff3b192017-09-04 18:44:23 +010090 int stride_x = 0;
91 int stride_y = 0;
Jaroslaw Rzepeckia1ed41f2017-10-13 11:13:58 +010092
Anthony Barbier6ff3b192017-09-04 18:44:23 +010093 std::tie(stride_x, stride_y) = conv_info.stride();
94
95 const bool run_img2col_reduced = (output->info()->dimension(0) == (input->info()->dimension(0) * input->info()->dimension(1) * input->info()->dimension(2))) && (TensorShape::num_max_dimensions >= 4)
96 && (std::equal(input->info()->tensor_shape().cbegin() + 3,
97 input->info()->tensor_shape().cend(),
98 output->info()->tensor_shape().cbegin() + 1))
Jaroslaw Rzepeckia1ed41f2017-10-13 11:13:58 +010099 && ((stride_x == 1) && (stride_y == 1) && !conv_info.has_padding());
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100100
Gian Marco76faef82018-01-29 12:15:32 +0000101 bool is_optimized_path = false;
102
103 _num_elems_processed_per_iteration = 1;
104
105 std::string kernel_name;
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100106 if(!run_img2col_reduced)
107 {
Gian Marco76faef82018-01-29 12:15:32 +0000108 // Default kernel name
109 kernel_name = "im2col_generic_dchw";
110
Gian Marco Iodice13edbff2017-06-26 17:20:16 +0100111 _convolved_dims = scaled_dimensions(input->info()->dimension(0), input->info()->dimension(1),
112 kernel_dims.width, kernel_dims.height,
Alex Gilday7da29b62018-03-23 14:16:00 +0000113 conv_info, dilation);
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100114
Georgios Pinitas45bcc3a2017-11-29 11:06:49 +0000115 build_opts.add_option("-DKERNEL_WIDTH=" + support::cpp11::to_string(kernel_dims.width));
116 build_opts.add_option("-DKERNEL_HEIGHT=" + support::cpp11::to_string(kernel_dims.height));
117 build_opts.add_option("-DKERNEL_DEPTH=" + support::cpp11::to_string(input->info()->dimension(2)));
118 build_opts.add_option("-DCONVOLVED_WIDTH=" + support::cpp11::to_string(_convolved_dims.first));
119 build_opts.add_option("-DCONVOLVED_HEIGHT=" + support::cpp11::to_string(_convolved_dims.second));
120 build_opts.add_option("-DSTRIDE_X=" + support::cpp11::to_string(conv_info.stride().first));
121 build_opts.add_option("-DSTRIDE_Y=" + support::cpp11::to_string(conv_info.stride().second));
122 build_opts.add_option("-DPAD_LEFT=" + support::cpp11::to_string(conv_info.pad_left()));
123 build_opts.add_option("-DPAD_TOP=" + support::cpp11::to_string(conv_info.pad_top()));
124 build_opts.add_option("-DPAD_RIGHT=" + support::cpp11::to_string(conv_info.pad_right()));
125 build_opts.add_option("-DPAD_BOTTOM=" + support::cpp11::to_string(conv_info.pad_bottom()));
126 build_opts.add_option("-DSRC_WIDTH=" + support::cpp11::to_string(input->info()->dimension(0)));
127 build_opts.add_option("-DSRC_HEIGHT=" + support::cpp11::to_string(input->info()->dimension(1)));
Alex Gilday7da29b62018-03-23 14:16:00 +0000128 build_opts.add_option("-DDILATION_X=" + support::cpp11::to_string(dilation.x()));
129 build_opts.add_option("-DDILATION_Y=" + support::cpp11::to_string(dilation.y()));
Chunosov5124be52017-11-22 20:42:13 +0700130 build_opts.add_option_if_else(is_data_type_quantized(data_type), "-DPAD_VALUE=" + support::cpp11::to_string(input->info()->quantization_info().offset), "-DPAD_VALUE=0");
Gian Marco Iodice13edbff2017-06-26 17:20:16 +0100131
Gian Marco76faef82018-01-29 12:15:32 +0000132 const bool squared_im2col = kernel_dims.width == kernel_dims.height;
Anthony Barbierfcd52fb2017-11-28 10:31:43 +0000133
Alex Gilday7da29b62018-03-23 14:16:00 +0000134 if(dilation == Size2D(1U, 1U))
Gian Marco76faef82018-01-29 12:15:32 +0000135 {
Alex Gilday7da29b62018-03-23 14:16:00 +0000136 if(squared_im2col && !is_data_type_fixed_point(data_type))
Anthony Barbierfcd52fb2017-11-28 10:31:43 +0000137 {
Alex Gilday7da29b62018-03-23 14:16:00 +0000138 // Check if we can run an optimized im2col
139 switch(kernel_dims.width)
140 {
141 case 1:
142 // Optimized im2col1x1 if stride_x = 1 and conv_info.has_padding() = false
143 if(conv_info.stride().first == 1 && !conv_info.has_padding())
144 {
145 // Set hint for LWS
146 _lws_hint = cl::NDRange(1, 1, 8);
147 _num_elems_processed_per_iteration = 4;
148 is_optimized_path = true;
149 kernel_name = "im2col1x1_stridex1_dchw";
150 }
151 break;
152 case 3:
Gian Marco562deff2018-02-07 10:18:06 +0000153 _lws_hint = cl::NDRange(1, 1, 8);
Gian Marco76faef82018-01-29 12:15:32 +0000154 _num_elems_processed_per_iteration = 1;
155 is_optimized_path = true;
Alex Gilday7da29b62018-03-23 14:16:00 +0000156 kernel_name = "im2col3x3_dchw";
157 break;
158 case 5:
159 _num_elems_processed_per_iteration = 1;
160 is_optimized_path = true;
161 kernel_name = "im2col5x5_dchw";
162 break;
163 case 11:
164 // Optimized im2col11x11 if pad_x = pad_y = 0
165 if(!conv_info.has_padding())
166 {
167 _num_elems_processed_per_iteration = 1;
168 is_optimized_path = true;
169 kernel_name = "im2col11x11_padx0_pady0_dchw";
170 }
171 break;
172 default:
173 is_optimized_path = false;
174 break;
175 }
Anthony Barbierfcd52fb2017-11-28 10:31:43 +0000176 }
Alex Gilday7da29b62018-03-23 14:16:00 +0000177 else if(kernel_dims.width > 1 && !conv_info.has_padding())
178 {
179 _num_elems_processed_per_iteration = 1;
180 kernel_name = "im2col_generic_padx0_pady0_dchw";
Anthony Barbierfcd52fb2017-11-28 10:31:43 +0000181
Alex Gilday7da29b62018-03-23 14:16:00 +0000182 // Optimized im2col is performed using one or more vector operations with the specified vector size
183 // and a remainder. For example, for 5x5 convolutions, im2col is performed using vectors of size 4
184 // and scalars; for 7x7 convolutions, using vectors of size 4 and vectors of size 3.
185 // Using the vector size of 4 is always safe since OpenCL supports vectors of size 2 and 3.
186 // Using the vector size of 8, however, may be faster.
187 size_t vector_size = 4;
188 // For 2x2 convolutions, use vectors of size 2. (For 3x3 convolutions, im2col_kernel3x3_padx0_pady0
189 // is used instead.)
190 if(kernel_dims.width < vector_size)
191 {
192 vector_size = kernel_dims.width;
193 }
Georgios Pinitas17812ba2018-06-04 19:27:13 +0100194 // Vector size optimized for the 11x11 AlexNet convolution on Bifrost.
Sam Laynton56e8e862018-04-05 13:26:08 +0100195 if(gpu_target_is_in(gpu_target, GPUTarget::G71, GPUTarget::G72, GPUTarget::G51, GPUTarget::G51BIG, GPUTarget::G51LIT, GPUTarget::TNOX) && kernel_dims.width == 11)
Alex Gilday7da29b62018-03-23 14:16:00 +0000196 {
Alex Gilday7da29b62018-03-23 14:16:00 +0000197 vector_size = 8;
198 }
199 const size_t width_mod_vector_size = kernel_dims.width % vector_size;
200 build_opts.add_option("-DVECTOR_SIZE=" + support::cpp11::to_string(vector_size));
201 build_opts.add_option("-DWIDTH_MOD_VECTOR_SIZE=" + support::cpp11::to_string(width_mod_vector_size));
Anthony Barbierfcd52fb2017-11-28 10:31:43 +0000202 }
Anthony Barbierfcd52fb2017-11-28 10:31:43 +0000203 }
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100204 _run_func = &CLIm2ColKernel::run_generic;
205 }
206 else
207 {
208 _num_elems_processed_per_iteration = 1;
Gian Marco76faef82018-01-29 12:15:32 +0000209 kernel_name = "im2col_reduced_dchw";
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100210 _run_func = &CLIm2ColKernel::run_reduced;
211 }
212
Georgios Pinitas45bcc3a2017-11-29 11:06:49 +0000213 // Create kernel
214 _kernel = static_cast<cl::Kernel>(CLKernelLibrary::get().create_kernel(kernel_name, build_opts.options()));
215
Alex Gilday7da29b62018-03-23 14:16:00 +0000216 // Configure kernel window
Gian Marco76faef82018-01-29 12:15:32 +0000217 Window win;
218 if(is_optimized_path)
219 {
220 win = calculate_max_window(*input->info(),
221 Steps(_num_elems_processed_per_iteration),
222 false,
223 BorderSize(conv_info.pad_top(), conv_info.pad_right(), conv_info.pad_bottom(), conv_info.pad_left()));
224
225 const int x = -conv_info.pad_left();
226 const int y = -conv_info.pad_top();
227 const int w = kernel_dims.width * _num_elems_processed_per_iteration;
228 const int h = kernel_dims.height;
229
230 AccessWindowRectangle input_access(input->info(), x, y, w, h);
231
232 update_window_and_padding(win, input_access);
233 }
234 else
235 {
236 // For the generic case, CLIm2ColKernel doesn't need padding (we do not read out-of-bounds elements) so
237 // update_window_and_padding() can be skipped
238 win = calculate_max_window(*input->info(), Steps());
239 }
240
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100241 output->info()->set_valid_region(ValidRegion(Coordinates(), output->info()->tensor_shape()));
steniu01868e5412017-07-17 23:16:00 +0100242 if(!run_img2col_reduced)
243 {
244 // set the Z dimension's step same size as the whole dimension so that one can't split across the Z dimension
245 win.set_dimension_step(Window::DimZ, win[Window::DimZ].end() - win[Window::DimZ].start());
246 }
247
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100248 ICLKernel::configure(win);
Gian Marcode691f02017-09-08 16:13:11 +0100249
250 // Set config_id for enabling LWS tuning
Gian Marco76faef82018-01-29 12:15:32 +0000251 _config_id = kernel_name;
252 _config_id += "_";
Gian Marcode691f02017-09-08 16:13:11 +0100253 _config_id += lower_string(string_from_data_type(input->info()->data_type()));
254 _config_id += "_";
255 _config_id += support::cpp11::to_string(output->info()->dimension(0));
256 _config_id += "_";
257 _config_id += support::cpp11::to_string(output->info()->dimension(1));
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100258}
259
Alex Gilday7da29b62018-03-23 14:16:00 +0000260Status CLIm2ColKernel::validate(const ITensorInfo *input, const ITensorInfo *output, const Size2D &kernel_dims, const PadStrideInfo &conv_info, bool has_bias, const Size2D &dilation)
Georgios Pinitas358ca202017-12-07 16:47:52 +0000261{
262 ARM_COMPUTE_UNUSED(kernel_dims);
263 ARM_COMPUTE_UNUSED(conv_info);
264 ARM_COMPUTE_UNUSED(has_bias);
Alex Gilday7da29b62018-03-23 14:16:00 +0000265 ARM_COMPUTE_RETURN_ON_ERROR(validate_arguments(input, output, has_bias, dilation));
Georgios Pinitas358ca202017-12-07 16:47:52 +0000266 return Status{};
267}
268
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100269void CLIm2ColKernel::run(const Window &window, cl::CommandQueue &queue)
270{
271 ARM_COMPUTE_ERROR_ON(_run_func == nullptr);
272 (this->*_run_func)(window, queue);
273}
274
275void CLIm2ColKernel::run_generic(const Window &window, cl::CommandQueue &queue)
276{
277 ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL(this);
278 ARM_COMPUTE_ERROR_ON_MISMATCHING_WINDOWS(ICLKernel::window(), window);
279
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100280 // Get initial windows
steniu01868e5412017-07-17 23:16:00 +0100281 Window window_collapsed = window.collapse_if_possible(ICLKernel::window(), Window::DimZ);
282 // Change the Z dimension's step back to 1
283 window_collapsed.set_dimension_step(Window::DimZ, 1);
284
285 Window slice = window_collapsed.first_slice_window_3D();
286 Window slice_in = window_collapsed.first_slice_window_3D();
287 Window slice_out = window_collapsed.first_slice_window_3D();
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100288
Gian Marco76faef82018-01-29 12:15:32 +0000289 // Setup slice if stride_x != 0 or stride_y != 0
290 if(_convolved_dims.first != _input->info()->dimension(0) || _convolved_dims.second != _input->info()->dimension(1))
291 {
292 // If the stride_x or stride_y are not 1, the output tensor of matrix multiply (Convolved tensor) will not
293 // have the same shape of the im2col input tensor
294 // In this case we need to re-compute the window using the shape of the tensor after matrix multiply (convolved_dims)
295 slice.set(Window::DimX, Window::Dimension(0, static_cast<int>(_convolved_dims.first), 1));
296 slice.set(Window::DimY, Window::Dimension(0, static_cast<int>(_convolved_dims.second), 1));
297 }
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100298
299 // Setup input slice
300 // The first three dimensions of the input are increased by the inner loops
301 slice_in.set(Window::DimX, Window::Dimension(0, 0, 0));
302 slice_in.set(Window::DimY, Window::Dimension(0, 0, 0));
303 slice_in.set(Window::DimZ, Window::Dimension(0, 0, 0));
304
305 // Setup output slice
Gian Marco76faef82018-01-29 12:15:32 +0000306 slice_out.set(Window::DimX, Window::Dimension(0, _output->info()->dimension(0), _kernel_dims.area()));
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100307 slice_out.set(Window::DimY, Window::Dimension(0, _output->info()->dimension(1), 1));
308 slice_out.set(Window::DimZ, Window::Dimension(0, 1, 1));
309
310 do
311 {
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100312 unsigned int idx = 0;
313 add_3D_tensor_argument(idx, _input, slice_in);
314 add_2D_tensor_argument(idx, _output, slice_out);
steniu01868e5412017-07-17 23:16:00 +0100315 _kernel.setArg<cl_uint>(idx++, static_cast<unsigned int>(_input->info()->strides_in_bytes()[3]));
316 _kernel.setArg<cl_uint>(idx++, static_cast<unsigned int>(_output->info()->strides_in_bytes()[3]));
Gian Marco Iodice3a623242017-07-25 10:25:53 +0100317 enqueue(queue, *this, slice, _lws_hint);
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100318 }
steniu01868e5412017-07-17 23:16:00 +0100319 while(window_collapsed.slide_window_slice_3D(slice) && window_collapsed.slide_window_slice_3D(slice_out) && window_collapsed.slide_window_slice_3D(slice_in));
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100320}
321
322void CLIm2ColKernel::run_reduced(const Window &window, cl::CommandQueue &queue)
323{
324 ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL(this);
325 ARM_COMPUTE_ERROR_ON_MISMATCHING_WINDOWS(ICLKernel::window(), window);
326
327 Window out_window;
SiCong Li86b53332017-08-23 11:02:43 +0100328 out_window.use_tensor_dimensions(_output->info()->tensor_shape());
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100329
330 Window out_slice = out_window.first_slice_window_1D();
331 Window in_slice = window.first_slice_window_3D();
332
333 // Run kernel
334 do
335 {
336 // Set arguments
337 unsigned int idx = 0;
338 add_3D_tensor_argument(idx, _input, in_slice);
339 add_1D_tensor_argument(idx, _output, out_slice);
340
341 _kernel.setArg<cl_uint>(idx++, _input->info()->dimension(0));
342 _kernel.setArg<cl_uint>(idx++, _input->info()->dimension(1));
Gian Marcod7779da2017-11-22 14:46:28 +0000343 enqueue(queue, *this, in_slice, _lws_hint);
Anthony Barbier6ff3b192017-09-04 18:44:23 +0100344 }
345 while(window.slide_window_slice_3D(in_slice) && out_window.slide_window_slice_1D(out_slice));
346}