21.02
|
Interface for the kernel to perform min max search on a 3D tensor. More...
#include <NEMinMaxLayerKernel.h>
Public Member Functions | |
const char * | name () const override |
Name of the kernel. More... | |
NEMinMaxLayerKernel () | |
Default constructor. More... | |
NEMinMaxLayerKernel (const NEMinMaxLayerKernel &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEMinMaxLayerKernel & | operator= (const NEMinMaxLayerKernel &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEMinMaxLayerKernel (NEMinMaxLayerKernel &&)=delete | |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
NEMinMaxLayerKernel & | operator= (NEMinMaxLayerKernel &&)=delete |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
~NEMinMaxLayerKernel ()=default | |
Default destructor. More... | |
void | configure (const ITensor *input, ITensor *output) |
Initialise the kernel's input and outputs. More... | |
void | reset () |
Resets global minimum and maximum. More... | |
void | run (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 void | run_op (ITensorPack &tensors, const Window &window, const ThreadInfo &info) |
Execute the kernel on the passed window. 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... | |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *input, const ITensorInfo *output) |
Static function to check if given info will lead to a valid configuration of CLMinMaxLayerKernel. More... | |
Interface for the kernel to perform min max search on a 3D tensor.
Definition at line 38 of file NEMinMaxLayerKernel.h.
Default constructor.
Definition at line 91 of file NEMinMaxLayerKernel.cpp.
Referenced by NEMinMaxLayerKernel::name().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
delete |
Prevent instances of this class from being moved (As this class contains non movable objects)
|
default |
Default destructor.
Referenced by NEMinMaxLayerKernel::name().
Initialise the kernel's input and outputs.
[in] | input | Input tensor with at least 3 dimensions. The dimensions over the third will be interpreted as batches. Data type supported: F32. |
[out] | output | Output tensor with shape [2, batches, ...] which stores the minimum and maximum value for each 3D input tensor. The dimensions over the second must match the batched dimensions of the input tensor. Data types supported: F32 |
Definition at line 96 of file NEMinMaxLayerKernel.cpp.
References ARM_COMPUTE_ERROR_ON_NULLPTR, ARM_COMPUTE_ERROR_THROW_ON, ITensor::info(), arm_compute::test::validation::input, and arm_compute::validate_arguments().
Referenced by NEMinMaxLayerKernel::name().
|
inlineoverridevirtual |
Name of the kernel.
Implements ICPPKernel.
Definition at line 41 of file NEMinMaxLayerKernel.h.
References NEMinMaxLayerKernel::configure(), arm_compute::test::validation::info, arm_compute::test::validation::input, NEMinMaxLayerKernel::NEMinMaxLayerKernel(), NEMinMaxLayerKernel::operator=(), NEMinMaxLayerKernel::reset(), NEMinMaxLayerKernel::run(), NEMinMaxLayerKernel::validate(), IKernel::window(), and NEMinMaxLayerKernel::~NEMinMaxLayerKernel().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by NEMinMaxLayerKernel::name().
|
delete |
Prevent instances of this class from being moved (As this class contains non movable objects)
void reset | ( | ) |
Resets global minimum and maximum.
Definition at line 194 of file NEMinMaxLayerKernel.cpp.
References ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL, Window::DimX, arm_compute::execute_window_loop(), ITensor::info(), arm_compute::support::cpp11::lowest(), Iterator::ptr(), Window::set(), ITensorInfo::tensor_shape(), and Window::use_tensor_dimensions().
Referenced by NEMinMaxLayerKernel::name().
|
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 119 of file NEMinMaxLayerKernel.cpp.
References ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW, ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL, ARM_COMPUTE_UNUSED, Window::DimX, Window::Dimension::end(), arm_compute::execute_window_loop(), ITensor::info(), arm_compute::test::validation::input, arm_compute::support::cpp11::lowest(), Iterator::ptr(), Window::set(), Window::Dimension::start(), ITensorInfo::strides_in_bytes(), ITensorInfo::tensor_shape(), Window::use_tensor_dimensions(), IKernel::window(), Window::x(), x_end, and x_start.
Referenced by NEMinMaxLayerKernel::name().
|
static |
Static function to check if given info will lead to a valid configuration of CLMinMaxLayerKernel.
[in] | input | Input tensor info. Data types supported: F32. |
[in] | output | Output tensor info with shape [2, batches, ...] which stores the minimum and maximum values for each 3D input tensor. The dimensions over the second must match the batched dimensions of the input tensor. Data types supported: F32. |
Definition at line 111 of file NEMinMaxLayerKernel.cpp.
References ARM_COMPUTE_RETURN_ON_ERROR, ICloneable< T >::clone(), and arm_compute::validate_arguments().
Referenced by NEMinMaxLayerKernel::name().