23.08
|
Go to the documentation of this file.
40 : _min(nullptr), _max(nullptr), _aspect_ratios(nullptr)
52 _min = cl::Buffer(
CLScheduler::get().
context(), CL_MEM_ALLOC_HOST_PTR | CL_MEM_READ_WRITE,
info.min_sizes().size() *
sizeof(
float));
53 _aspect_ratios = cl::Buffer(
CLScheduler::get().
context(), CL_MEM_ALLOC_HOST_PTR | CL_MEM_READ_WRITE,
info.aspect_ratios().size() *
sizeof(
float));
54 if(!
info.max_sizes().empty())
56 _max = cl::Buffer(
CLScheduler::get().
context(), CL_MEM_ALLOC_HOST_PTR | CL_MEM_READ_WRITE,
info.max_sizes().size() *
sizeof(
float));
59 auto k = std::make_unique<CLPriorBoxLayerKernel>();
60 k->configure(compile_context, input1, input2, output,
info, &_min, &_max, &_aspect_ratios);
61 _kernel = std::move(
k);
Interface for OpenCL tensor.
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
Interface to enqueue OpenCL kernels and get/set the OpenCL CommandQueue and ICLTuner.
static Status validate(const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output, const PriorBoxLayerInfo &info)
Static function to check if given info will lead to a valid configuration of CLPriorBoxLayerKernel.
static Status validate(const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output, const PriorBoxLayerInfo &info)
Static function to check if given info will lead to a valid configuration of CLPriorBoxLayer.
static CLScheduler & get()
Access the scheduler singleton.
Copyright (c) 2017-2023 Arm Limited.
Store the tensor's metadata.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
void configure(const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output, const PriorBoxLayerInfo &info)
Set the input and output tensors.
#define ARM_COMPUTE_LOG_PARAMS(...)
CLPriorBoxLayer()
Constructor.