24.02.1
|
Go to the documentation of this file.
34 struct CLPoolingLayer::Impl
36 const ICLTensor *
src{
nullptr};
37 ICLTensor *
dst{
nullptr};
38 ICLTensor *indices{
nullptr};
39 std::unique_ptr<opencl::ClPool2d> op{
nullptr};
63 _impl->indices = indices;
65 _impl->op = std::make_unique<opencl::ClPool2d>();
66 _impl->op->configure(compile_context,
input->info(), output->
info(), pool_info,
67 (indices) ? indices->
info() :
nullptr);
SimpleTensor< float > src
void configure(ICLTensor *input, ICLTensor *output, const PoolingLayerInfo &pool_info, ICLTensor *indices=nullptr)
Set the input and output tensors.
CLPoolingLayer()
Default Constructor.
Interface for OpenCL tensor.
void add_tensor(int id, ITensor *tensor)
Add tensor to the pack.
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
Manages all the OpenCL kernels compilation and caching, provides accessors for the OpenCL Context.
virtual ITensorInfo * info() const =0
Interface to be implemented by the child class to return the tensor's metadata.
Pooling Layer Information struct.
static Status validate(const ITensorInfo *input, const ITensorInfo *output, const PoolingLayerInfo &pool_info, const ITensorInfo *indices=nullptr)
Static function to check if given info will lead to a valid configuration of CLPoolingLayer.
void run() override
Run the kernels contained in the function.
static Status validate(const ITensorInfo *src, const ITensorInfo *dst, const PoolingLayerInfo &info, const ITensorInfo *indices=nullptr)
Static function to check if given info will lead to a valid configuration.
Copyright (c) 2017-2024 Arm Limited.
~CLPoolingLayer()
Default Destructor.
Store the tensor's metadata.