24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_NEPADLAYERKERNEL_H
25 #define ARM_COMPUTE_NEPADLAYERKERNEL_H
39 const char *
name()
const override
41 return "NEPadLayerKernel";
99 size_t get_mws(
const CPUInfo &platform,
size_t thread_count)
const override;
106 template <
typename T>
113 void run_pad_constant_uint8_3Dinput_3Dpad(
const Window &
window);
121 PadFunctionPtr _func;
Class describing the value of a pixel for any image format.
std::vector< PaddingInfo > PaddingList
List of padding information.
Basic kernel to pad the input tensor given padding information.
void run(const Window &window, const ThreadInfo &info) override
Execute the kernel on the passed window.
NEPadLayerKernel & operator=(const NEPadLayerKernel &)=delete
Prevent instances of this class from being copied (As this class contains pointers)
static Status validate(const ITensorInfo *input, const ITensorInfo *output, const PaddingList &padding, const PixelValue constant_value=PixelValue(), const PaddingMode mode=PaddingMode::CONSTANT)
Static function to check if given info will lead to a valid configuration of NEPadLayer.
Interface for CPU tensor.
void configure(ITensor *input, ITensor *output, const PaddingList &padding, const PixelValue constant_value=PixelValue(), const PaddingMode mode=PaddingMode::CONSTANT)
Initialize the function.
PaddingMode
Padding mode to use for PadLayer.
Common interface for all kernels implemented in C++.
~NEPadLayerKernel()=default
Default destructor.
const Window & window() const
The maximum window the kernel can be executed on.
Information about executing thread and CPU.
const char * name() const override
Name of the kernel.
Describe a multidimensional execution window.
Copyright (c) 2017-2024 Arm Limited.
Store the tensor's metadata.
NEPadLayerKernel()
Default constructor.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
size_t get_mws(const CPUInfo &platform, size_t thread_count) const override
Return minimum workload size of the relevant kernel.