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

Method run

src/core/CL/kernels/CLStackLayerKernel.cpp:147–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147void CLStackLayerKernel::run(const Window &window, cl::CommandQueue &queue)
148{
149 ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL(this);
150 ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW(ICLKernel::window(), window);
151
152 Window window_out;
153 window_out.use_tensor_dimensions(_output->info()->tensor_shape());
154
155 Window collapsed = window.collapse(ICLKernel::window(), Window::DimZ);
156
157 Window slice_in = collapsed.first_slice_window_4D();
158 Window slice_out = window_out.first_slice_window_4D();
159
160 unsigned int idx = 0;
161 add_4D_tensor_argument(idx, _input, slice_in);
162 add_4D_tensor_argument(idx, _output, slice_out);
163 enqueue(queue, *this, slice_in, lws_hint());
164}
165} // namespace arm_compute

Callers

nothing calls this directly

Calls 3

first_slice_window_4DMethod · 0.80
infoMethod · 0.45
collapseMethod · 0.45

Tested by

no test coverage detected