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

Method run

src/core/CL/kernels/CLPriorBoxLayerKernel.cpp:237–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237void CLPriorBoxLayerKernel::run(const Window &window, cl::CommandQueue &queue)
238{
239 ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL(this);
240 ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW(IKernel::window(), window);
241
242 queue.enqueueWriteBuffer(*_min, CL_TRUE, 0, _info.min_sizes().size() * sizeof(float), _info.min_sizes().data());
243 queue.enqueueWriteBuffer(*_aspect_ratios, CL_TRUE, 0, _info.aspect_ratios().size() * sizeof(float),
244 _info.aspect_ratios().data());
245 if (!_info.max_sizes().empty())
246 {
247 queue.enqueueWriteBuffer(*_max, CL_TRUE, 0, _info.max_sizes().size() * sizeof(float), _info.max_sizes().data());
248 }
249
250 Window slice = window.first_slice_window_2D();
251 slice.set(Window::DimY, Window::Dimension(0, _output->info()->dimension(1), 2));
252
253 unsigned int idx = 0;
254 add_2D_tensor_argument(idx, _output, slice);
255 enqueue(queue, *this, slice, lws_hint());
256}
257} // namespace arm_compute

Callers

nothing calls this directly

Calls 12

enqueueWriteBufferMethod · 0.80
min_sizesMethod · 0.80
aspect_ratiosMethod · 0.80
max_sizesMethod · 0.80
first_slice_window_2DMethod · 0.80
DimensionClass · 0.50
sizeMethod · 0.45
dataMethod · 0.45
emptyMethod · 0.45
setMethod · 0.45
dimensionMethod · 0.45
infoMethod · 0.45

Tested by

no test coverage detected