21.02
|
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... | |
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... | |
Interface for the kernel to fill borders.
Definition at line 37 of file NEFillBorderKernel.h.
Default Constructor.
Definition at line 91 of file NEFillBorderKernel.cpp.
References arm_compute::UNDEFINED.
Referenced by NEFillBorderKernel::name().
|
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.
Referenced by NEFillBorderKernel::name().
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 96 of file NEFillBorderKernel.cpp.
References ARM_COMPUTE_ERROR_ON_NULLPTR, IKernel::border_size(), and ITensor::info().
Referenced by NEFillBorderKernel::name().
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 103 of file NEFillBorderKernel.cpp.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_NULLPTR, IKernel::border_size(), ITensorInfo::data_type(), Window::DimX, Window::DimY, Window::DimZ, ITensorInfo::padding(), Window::set(), ITensorInfo::tensor_shape(), arm_compute::UNKNOWN, and Window::use_tensor_dimensions().
|
inlineoverridevirtual |
Name of the kernel.
Implements ICPPKernel.
Definition at line 40 of file NEFillBorderKernel.h.
References IKernel::border_size(), NEFillBorderKernel::configure(), arm_compute::test::validation::info, NEFillBorderKernel::NEFillBorderKernel(), NEFillBorderKernel::operator=(), NEFillBorderKernel::run(), NEFillBorderKernel::run_op(), IKernel::window(), and NEFillBorderKernel::~NEFillBorderKernel().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by NEFillBorderKernel::name().
|
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 122 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(), BorderSize::left, arm_compute::REPLICATE, BorderSize::right, BorderSize::top, arm_compute::UNDEFINED, and IKernel::window().
Referenced by NEFillBorderKernel::name(), and 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 161 of file NEFillBorderKernel.cpp.
References arm_compute::ACL_SRC_DST, ValidRegion::anchor, BorderSize::bottom, Window::DimY, ITensorInfo::element_size(), arm_compute::execute_window_loop(), ITensorPack::get_tensor(), ITensor::info(), BorderSize::left, Iterator::offset(), Iterator::ptr(), ITensor::ptr_to_element(), BorderSize::right, NEFillBorderKernel::run(), Window::set(), ValidRegion::shape, ITensorInfo::strides_in_bytes(), BorderSize::top, and ITensorInfo::valid_region().
Referenced by NEFillBorderKernel::name().