diff options
Diffstat (limited to 'src/core/CL/kernels/CLPriorBoxLayerKernel.cpp')
-rw-r--r-- | src/core/CL/kernels/CLPriorBoxLayerKernel.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/CL/kernels/CLPriorBoxLayerKernel.cpp b/src/core/CL/kernels/CLPriorBoxLayerKernel.cpp index ed70f4ddb7..9f930c54c2 100644 --- a/src/core/CL/kernels/CLPriorBoxLayerKernel.cpp +++ b/src/core/CL/kernels/CLPriorBoxLayerKernel.cpp @@ -102,6 +102,12 @@ CLPriorBoxLayerKernel::CLPriorBoxLayerKernel() void CLPriorBoxLayerKernel::configure(const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output, const PriorBoxLayerInfo &info, cl::Buffer *min, cl::Buffer *max, cl::Buffer *aspect_ratios) { + configure(CLKernelLibrary::get().get_compile_context(), input1, input2, output, info, min, max, aspect_ratios); +} + +void CLPriorBoxLayerKernel::configure(CLCompileContext &compile_context, const ICLTensor *input1, const ICLTensor *input2, ICLTensor *output, const PriorBoxLayerInfo &info, cl::Buffer *min, + cl::Buffer *max, cl::Buffer *aspect_ratios) +{ ARM_COMPUTE_ERROR_ON_NULLPTR(input1, input2, output); _input1 = input1; @@ -170,7 +176,7 @@ void CLPriorBoxLayerKernel::configure(const ICLTensor *input1, const ICLTensor * } unsigned int idx = num_arguments_per_2D_tensor(); - _kernel = static_cast<cl::Kernel>(CLKernelLibrary::get().create_kernel("prior_box_layer_nchw", build_opts.options())); + _kernel = create_kernel(compile_context, "prior_box_layer_nchw", build_opts.options()); _kernel.setArg(idx++, *_min); _kernel.setArg(idx++, *_max); |