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