ONE - On-device Neural Engine
|
Class to define interface for the reduce operation kernel. More...
#include <CLReduceOperationKernel.h>
Public Member Functions | |
CLReduceOperationKernel () | |
Default constructor. | |
CLReduceOperationKernel (const CLReduceOperationKernel &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) | |
CLReduceOperationKernel & | operator= (const CLReduceOperationKernel &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) | |
CLReduceOperationKernel (CLReduceOperationKernel &&)=default | |
Allow instances of this class to be moved. | |
CLReduceOperationKernel & | operator= (CLReduceOperationKernel &&)=default |
Allow instances of this class to be moved. | |
~CLReduceOperationKernel ()=default | |
Default destructor. | |
void | configure (const ICLTensor *input, ICLTensor *output, const uint32_t axis, ReductionOperation op) |
Set the input and output tensors. | |
void | run (const Window &window, cl::CommandQueue &queue) override |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *input, const ITensorInfo *output, const uint32_t axis, ReductionOperation op) |
Static function to check if given info will lead to a valid configuration of CLReduceOperationKernel. | |
Class to define interface for the reduce operation kernel.
Definition at line 60 of file CLReduceOperationKernel.h.
CLReduceOperationKernel::CLReduceOperationKernel | ( | ) |
Default constructor.
Definition at line 101 of file CLReduceOperationKernel.cpp.
|
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.
References validate().
void CLReduceOperationKernel::configure | ( | const ICLTensor * | input, |
ICLTensor * | output, | ||
const uint32_t | axis, | ||
ReductionOperation | op | ||
) |
Set the input and output tensors.
[in] | input | Source tensor. Data types supported: U8/S32/F32. |
[out] | output | Destination tensor. Data types supported: Same as input . Output will have the same number of dimensions as input. |
[in] | axis | Axis along which to reduce. |
[in] | op | Reduce operation to perform. |
Definition at line 103 of file CLReduceOperationKernel.cpp.
References arm_compute::CLKernelLibraryEx::create_kernel(), and arm_compute::CLKernelLibraryEx::get().
|
default |
Allow instances of this class to be moved.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
override |
Definition at line 172 of file CLReduceOperationKernel.cpp.
Referenced by package.infer.session::inference().
|
static |
Static function to check if given info will lead to a valid configuration of CLReduceOperationKernel.
[in] | input | Source tensor info. Data types supported: U8/S32/F32. |
[in] | output | Destination tensor info. Data types supported: Same as input . Output will have the same number of dimensions as input. |
[in] | axis | Axis along which to reduce. |
[in] | op | Reduce operation to perform. |
Definition at line 163 of file CLReduceOperationKernel.cpp.
Referenced by arm_compute::CLReduceOperation::validate(), and ~CLReduceOperationKernel().