24.02.1
|
Interface for the kernel to fill borders. More...
#include <NEFillBorderKernel.h>
Public Member Functions | |
const char * | name () const override |
Name of the kernel. More... | |
NEFillBorderKernel () | |
Default Constructor. More... | |
NEFillBorderKernel (const NEFillBorderKernel &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEFillBorderKernel & | operator= (const NEFillBorderKernel &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEFillBorderKernel (NEFillBorderKernel &&)=default | |
Allow instances of this class to be moved. More... | |
NEFillBorderKernel & | operator= (NEFillBorderKernel &&)=default |
Allow instances of this class to be moved. More... | |
~NEFillBorderKernel ()=default | |
Default destructor. More... | |
void | configure (ITensor *tensor, BorderSize border_size, BorderMode border_mode, const PixelValue &constant_border_value=PixelValue()) |
Initialise the function. More... | |
void | configure (ITensorInfo *tensor, BorderSize border_size, BorderMode border_mode, const PixelValue &constant_border_value=PixelValue()) |
Initialise the function. More... | |
void | run (const Window &window, const ThreadInfo &info) override |
Execute the kernel on the passed window. More... | |
void | run_op (ITensorPack &tensors, const Window &window, const ThreadInfo &info) override |
Execute the kernel on the passed window. More... | |
Public Member Functions inherited from ICPPKernel | |
virtual | ~ICPPKernel ()=default |
Default destructor. More... | |
virtual void | run_nd (const Window &window, const ThreadInfo &info, const Window &thread_locator) |
legacy compatibility layer for implemantions which do not support thread_locator In these cases we simply narrow the interface down the legacy version More... | |
virtual size_t | get_mws (const CPUInfo &platform, size_t thread_count) const |
Return minimum workload size of the relevant kernel. More... | |
Public Member Functions inherited from IKernel | |
IKernel () | |
Constructor. More... | |
virtual | ~IKernel ()=default |
Destructor. More... | |
virtual bool | is_parallelisable () const |
Indicates whether or not the kernel is parallelisable. More... | |
virtual BorderSize | border_size () const |
The size of the border for that kernel. More... | |
const Window & | window () const |
The maximum window the kernel can be executed on. More... | |
bool | is_window_configured () const |
Function to check if the embedded window of this kernel has been configured. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from ICPPKernel | |
static constexpr size_t | default_mws = 1 |
Interface for the kernel to fill borders.
Definition at line 38 of file NEFillBorderKernel.h.
Default Constructor.
Definition at line 100 of file NEFillBorderKernel.cpp.
References arm_compute::UNDEFINED.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Allow instances of this class to be moved.
|
default |
Default destructor.
void configure | ( | ITensor * | tensor, |
BorderSize | border_size, | ||
BorderMode | border_mode, | ||
const PixelValue & | constant_border_value = PixelValue() |
||
) |
Initialise the function.
[in,out] | tensor | Tensor to process. Data types supported: All. |
[in] | border_size | Size of the border to fill in elements. |
[in] | border_mode | Border mode to use for the convolution. |
[in] | constant_border_value | (Optional) Constant value to use for borders if border_mode is set to CONSTANT. |
Definition at line 105 of file NEFillBorderKernel.cpp.
References ARM_COMPUTE_ERROR_ON_NULLPTR, IKernel::border_size(), and tensor.
void configure | ( | ITensorInfo * | tensor, |
BorderSize | border_size, | ||
BorderMode | border_mode, | ||
const PixelValue & | constant_border_value = PixelValue() |
||
) |
Initialise the function.
[in,out] | tensor | Tensor info to process. Data types supported: All. |
[in] | border_size | Size of the border to fill in elements. |
[in] | border_mode | Border mode to use for the convolution. |
[in] | constant_border_value | (Optional) Constant value to use for borders if border_mode is set to CONSTANT. |
Definition at line 115 of file NEFillBorderKernel.cpp.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_NULLPTR, IKernel::border_size(), Window::DimX, Window::DimY, Window::DimZ, BorderSize::limit(), Window::set(), tensor, arm_compute::UNKNOWN, and Window::use_tensor_dimensions().
|
inlineoverridevirtual |
Name of the kernel.
Implements ICPPKernel.
Definition at line 41 of file NEFillBorderKernel.h.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Allow instances of this class to be moved.
|
overridevirtual |
Execute the kernel on the passed window.
[in] | window | Region on which to execute the kernel. (Must be a region of the window returned by window()) |
[in] | info | Info about executing thread and CPU. |
Reimplemented from ICPPKernel.
Definition at line 137 of file NEFillBorderKernel.cpp.
References ARM_COMPUTE_ERROR, ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW, ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL, ARM_COMPUTE_UNUSED, BorderSize::bottom, arm_compute::CONSTANT, ITensorInfo::data_type(), BorderSize::empty(), arm_compute::F32, ITensor::info(), arm_compute::test::validation::info, BorderSize::left, arm_compute::REPLICATE, BorderSize::right, BorderSize::top, arm_compute::UNDEFINED, and IKernel::window().
Referenced by NEFillBorderKernel::run_op().
|
overridevirtual |
Execute the kernel on the passed window.
[in] | tensors | A vector containing the tensors to operate on. |
[in] | window | Region on which to execute the kernel. (Must be a region of the window returned by window()) |
[in] | info | Info about executing thread and CPU. |
Reimplemented from ICPPKernel.
Definition at line 177 of file NEFillBorderKernel.cpp.
References arm_compute::ACL_SRC_DST, ITensorPack::get_tensor(), arm_compute::test::validation::info, NEFillBorderKernel::run(), and IKernel::window().