Compute Library
18.05
|
NEON kernel to perform a reduction operation. More...
#include <NEReductionOperationKernel.h>
Public Member Functions | |
const char * | name () const override |
Name of the kernel. More... | |
NEReductionOperationKernel () | |
Default constructor. More... | |
NEReductionOperationKernel (const NEReductionOperationKernel &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEReductionOperationKernel & | operator= (const NEReductionOperationKernel &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEReductionOperationKernel (NEReductionOperationKernel &&)=default | |
Allow instances of this class to be moved. More... | |
NEReductionOperationKernel & | operator= (NEReductionOperationKernel &&)=default |
Allow instances of this class to be moved. More... | |
~NEReductionOperationKernel ()=default | |
Default destructor. More... | |
void | configure (const ITensor *input, ITensor *output, unsigned int axis, ReductionOperation op) |
Set the source, destination of the kernel. More... | |
void | run (const Window &window, const ThreadInfo &info) override |
Execute the kernel on the passed window. More... | |
BorderSize | border_size () const override |
The size of the border for that kernel. More... | |
Public Member Functions inherited from ICPPKernel | |
virtual | ~ICPPKernel ()=default |
Default destructor. 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... | |
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, unsigned int axis, ReductionOperation op) |
Static function to check if given info will lead to a valid configuration of NEReductionOperationKernel. More... | |
NEON kernel to perform a reduction operation.
Definition at line 34 of file NEReductionOperationKernel.h.
Default constructor.
Referenced by NEReductionOperationKernel::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 NEReductionOperationKernel::name().
|
overridevirtual |
The size of the border for that kernel.
Reimplemented from IKernel.
Referenced by NEReductionOperationKernel::name().
void configure | ( | const ITensor * | input, |
ITensor * | output, | ||
unsigned int | axis, | ||
ReductionOperation | op | ||
) |
Set the source, destination of the kernel.
[in] | input | Source tensor. Data type supported: F32. Data layouts supported: NCHW. |
[out] | output | Destination tensor.Data types and data layouts supported: same as input . Output will have the same number of dimensions as input. |
[in] | axis | Axis along which to reduce. Supported reduction axis : 0 |
[in] | op | Reduction operation to perform. |
Referenced by NEReductionOperationKernel::name().
|
inlineoverridevirtual |
Name of the kernel.
Implements ICPPKernel.
Definition at line 37 of file NEReductionOperationKernel.h.
References NEReductionOperationKernel::border_size(), NEReductionOperationKernel::configure(), arm_compute::test::validation::info(), NEReductionOperationKernel::NEReductionOperationKernel(), NEReductionOperationKernel::operator=(), NEReductionOperationKernel::run(), NEReductionOperationKernel::validate(), IKernel::window(), and NEReductionOperationKernel::~NEReductionOperationKernel().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by NEReductionOperationKernel::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. |
Implements ICPPKernel.
Referenced by NEReductionOperationKernel::name().
|
static |
Static function to check if given info will lead to a valid configuration of NEReductionOperationKernel.
[in] | input | Source tensor info. Data type supported: F32. Data layouts supported: NCHW. |
[in] | output | Destination tensor info.Data types and data layouts supported: same as input . Output will have the same number of dimensions as input. |
[in] | axis | Axis along which to reduce. Supported reduction axis : 0 |
[in] | op | Reduction operation to perform. |
Referenced by NEReductionOperationKernel::name().