24.02.1
|
Go to the documentation of this file.
41 const ICLTensor *
src{
nullptr};
42 ICLTensor *
dst{
nullptr};
43 std::unique_ptr<opencl::ClCrop> op{
nullptr};
58 float extrapolation_value,
71 float extrapolation_value,
80 _impl->op = std::make_unique<opencl::ClCrop>();
81 _impl->op->configure(compile_context, _impl->src->info(), _impl->dst->info(), start,
end, batch_index,
82 extrapolation_value, dst_window);
90 float extrapolation_value,
101 _impl->op->run(
pack);
SimpleTensor< float > src
Basic function to run opencl::kernels::ClCropKernel.
Interface for OpenCL tensor.
void run() override
Run the kernels contained in the function.
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.
#define ARM_COMPUTE_ERROR_ON_NULLPTR(...)
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 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.
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.
Describe a multidimensional execution window.
Copyright (c) 2017-2024 Arm Limited.
void end(TokenStream &in, bool &valid)
Store the tensor's metadata.
CLCrop & operator=(const CLCrop &)=delete
Prevent instances of this class from being copied (As this class contains pointers)
#define ARM_COMPUTE_LOG_PARAMS(...)