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

Method run

src/core/CL/kernels/CLMeanStdDevNormalizationKernel.cpp:135–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135void CLMeanStdDevNormalizationKernel::run(const Window &window, cl::CommandQueue &queue)
136{
137 ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL(this);
138 ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW(ICLKernel::window(), window);
139
140 Window slice = window.first_slice_window_2D();
141 // Set slice step equal to width to force gws[0] to 1, as each thread normalizes across all rows
142 slice.set_dimension_step(Window::DimX, _input->info()->dimension(0));
143
144 do
145 {
146 unsigned int idx = 0;
147 add_2D_tensor_argument(idx, _input, slice);
148 add_2D_tensor_argument_if((!_run_in_place), idx, _output, slice);
149
150 enqueue(queue, *this, slice, lws_hint());
151 } while (window.slide_window_slice_2D(slice));
152}
153} // namespace arm_compute

Callers

nothing calls this directly

Calls 4

first_slice_window_2DMethod · 0.80
slide_window_slice_2DMethod · 0.80
dimensionMethod · 0.45
infoMethod · 0.45

Tested by

no test coverage detected