36 struct CLReshapeLayer::Impl
38 const ICLTensor *
src{
nullptr };
39 ICLTensor *
dst{
nullptr };
40 std::unique_ptr<opencl::ClReshape> op{
nullptr };
44 : _impl(
std::make_unique<Impl>())
61 _impl->op = std::make_unique<opencl::ClReshape>();
62 _impl->op->configure(compile_context, input->
info(), output->
info());
static Status validate(const ITensorInfo *input, const ITensorInfo *output)
Static function to check if given info will lead to a valid configuration of CLReshapeLayer.
CLReshapeLayer & operator=(const CLReshapeLayer &)=delete
Prevent instances of this class from being copied (As this class contains pointers) ...
#define ARM_COMPUTE_RETURN_ON_ERROR(status)
Checks if a status contains an error and returns it.
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
Store the tensor's metadata.
SimpleTensor< float > src
static Status validate(const ITensorInfo *input, const ITensorInfo *output)
Static function to check if given info will lead to a valid configuration of kernels::ClReshapeKernel...
Copyright (c) 2017-2021 Arm Limited.
void run() override
Run the kernels contained in the function.
#define ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(...)
CLReshapeLayer()
Default Constructor.
virtual ITensorInfo * info() const =0
Interface to be implemented by the child class to return the tensor's metadata.
~CLReshapeLayer()
Default Destructor.
Interface for OpenCL tensor.
Manages all the OpenCL kernels compilation and caching, provides accessors for the OpenCL Context...
void configure(const ICLTensor *input, ICLTensor *output)
Initialise the kernel's inputs and outputs.
Basic function to run opencl::kernels::ClReshapeKernel.
void add_tensor(int id, ITensor *tensor)
Add tensor to the pack.