| 235 | } |
| 236 | |
| 237 | void 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 |
nothing calls this directly
no test coverage detected