39 const ICLTensor *
src{
nullptr };
40 ICLTensor *
dst{
nullptr };
41 std::unique_ptr<opencl::ClCrop> op{
nullptr };
45 : _impl(
std::make_unique<Impl>())
66 _impl->op = std::make_unique<opencl::ClCrop>();
67 _impl->op->configure(compile_context, _impl->src->info(), _impl->dst->info(),
start,
end, batch_index, extrapolation_value, dst_window);
void run() override
Run the kernels contained in the function.
void configure(const ICLTensor *input, ICLTensor *output, Coordinates2D start, Coordinates2D end, uint32_t batch_index, float extrapolation_value=0, Window *output_window=nullptr)
Configure function.
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
Store the tensor's metadata.
SimpleTensor< float > src
Copyright (c) 2017-2021 Arm Limited.
static Status validate(const ITensorInfo *src, const ITensorInfo *dst, Coordinates2D start, Coordinates2D end, uint32_t batch_index, float extrapolation_value=0, Window *dst_window=nullptr)
Static function to check if given info will lead to a valid configuration of kernels::ClCropKernel.
void end(TokenStream &in, bool &valid)
static Status validate(const ITensorInfo *input, const ITensorInfo *output, Coordinates2D start, Coordinates2D end, uint32_t batch_index, float extrapolation_value=0, Window *output_window=nullptr)
Static function to check if given info will lead to a valid configuration of CLStridedSliceKernel.
Basic function to run opencl::kernels::ClCropKernel.
Interface for OpenCL tensor.
Manages all the OpenCL kernels compilation and caching, provides accessors for the OpenCL Context...
#define ARM_COMPUTE_ERROR_ON_NULLPTR(...)
Describe a multidimensional execution window.
CLCrop & operator=(const CLCrop &)=delete
Prevent instances of this class from being copied (As this class contains pointers) ...
void add_tensor(int id, ITensor *tensor)
Add tensor to the pack.