MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / run

Method run

src/core/CL/kernels/CLNormalizePlanarYUVLayerKernel.cpp:203–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203void CLNormalizePlanarYUVLayerKernel::run(const Window &window, cl::CommandQueue &queue)
204{
205 ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL(this);
206 ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW(IKernel::window(), window);
207
208 Window collapsed = window.collapse_if_possible(ICLKernel::window(), Window::DimZ);
209 Window slice = collapsed.first_slice_window_3D();
210
211 Window slice_in = collapsed.first_slice_window_1D();
212 slice_in.set(Window::DimX, Window::Dimension(0, 0, 0));
213
214 unsigned int idx = 2 * num_arguments_per_3D_tensor();
215 add_1D_tensor_argument(idx, _mean, slice_in);
216 add_1D_tensor_argument(idx, _std, slice_in);
217
218 do
219 {
220 idx = 0;
221 add_3D_tensor_argument(idx, _input, slice);
222 add_3D_tensor_argument(idx, _output, slice);
223 enqueue(queue, *this, slice, lws_hint());
224 } while (collapsed.slide_window_slice_3D(slice));
225}
226} // namespace arm_compute

Callers

nothing calls this directly

Calls 6

collapse_if_possibleMethod · 0.80
first_slice_window_3DMethod · 0.80
first_slice_window_1DMethod · 0.80
slide_window_slice_3DMethod · 0.80
DimensionClass · 0.50
setMethod · 0.45

Tested by

no test coverage detected