35 struct CLPermute::Impl
37 const ICLTensor *
src{
nullptr };
38 ICLTensor *
dst{
nullptr };
39 std::unique_ptr<opencl::ClPermute> op{
nullptr };
43 : _impl(
std::make_unique<Impl>())
62 _impl->op = std::make_unique<opencl::ClPermute>();
63 _impl->op->configure(compile_context, _impl->src->info(), _impl->dst->info(), perm);
CLPermute & operator=(const CLPermute &)=delete
Prevent instances of this class from being copied (As this class contains pointers) ...
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
Store the tensor's metadata.
SimpleTensor< float > src
Copyright (c) 2017-2021 Arm Limited.
void run() override
Run the kernels contained in the function.
Basic function to execute an opencl::kernels::ClPermuteKernel.
Strides of an item in bytes.
Interface for OpenCL tensor.
Manages all the OpenCL kernels compilation and caching, provides accessors for the OpenCL Context...
#define ARM_COMPUTE_ERROR_ON_NULLPTR(...)
void configure(const ICLTensor *input, ICLTensor *output, const PermutationVector &perm)
Set the input and output tensors.
static Status validate(const ITensorInfo *input, const ITensorInfo *output, const PermutationVector &perm)
Static function to check if given info will lead to a valid configuration of CLPermute.
void add_tensor(int id, ITensor *tensor)
Add tensor to the pack.
static Status validate(const ITensorInfo *src, const ITensorInfo *dst, const PermutationVector &perm)
Static function to check if given info will lead to a valid configuration of kernels::ClPermuteKernel...