24.02.1
|
Go to the documentation of this file.
54 std::any_of(padding.begin(), padding.end(), [](
PaddingInfo info) { return info.first > 0 || info.second > 0; });
58 _pad_kernel->configure(compile_context,
input, output, padding, constant_value,
mode);
73 std::any_of(padding.begin(), padding.end(), [](
PaddingInfo info) { return info.first > 0 || info.second > 0; });
Class describing the value of a pixel for any image format.
std::vector< PaddingInfo > PaddingList
List of padding information.
void enqueue(ICLKernel &kernel, bool flush=true)
Schedule the execution of the passed kernel if possible.
Interface for OpenCL tensor.
void configure(ICLTensor *input, ICLTensor *output, Window *dst_window=nullptr)
Initialise the function's source and destination.
CLPadLayer()
Default constructor.
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
PaddingMode
Padding mode to use for PadLayer.
#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.
#define ARM_COMPUTE_ERROR_THROW_ON(status)
Interface for the PadLayer function.
void run() override
Run the kernels contained in the function.
static Status validate(const ITensorInfo *input, const ITensorInfo *output, const PaddingList &padding, PixelValue constant_value=PixelValue(), PaddingMode mode=PaddingMode::CONSTANT)
Static function to check if given info will lead to a valid configuration of CLPadLayer.
static CLScheduler & get()
Access the scheduler singleton.
static Status validate(const ITensorInfo *input, const ITensorInfo *output, Window *dst_window=nullptr)
Static function to check if given info will lead to a valid configuration of CLCopy.
Copyright (c) 2017-2024 Arm Limited.
std::pair< uint32_t, uint32_t > PaddingInfo
Padding information as a pair of unsigned int start/end.
void configure(ICLTensor *input, ICLTensor *output, const PaddingList &padding, PixelValue constant_value=PixelValue(), PaddingMode mode=PaddingMode::CONSTANT)
Initialize the function.
~CLPadLayer()
Default destructor.
static Status validate(const ITensorInfo *input, const ITensorInfo *output, const PaddingList &padding, PixelValue constant_value=PixelValue(), PaddingMode mode=PaddingMode::CONSTANT)
Static function to check if given info will lead to a valid configuration of CLPadLayerKernel.
Store the tensor's metadata.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
void run() override
Run the kernels contained in the function.
#define ARM_COMPUTE_LOG_PARAMS(...)