ONE - On-device Neural Engine
|
Class to define an interface for the gather kernel. More...
#include <CLGatherExKernel.h>
Public Member Functions | |
CLGatherExKernel () | |
Construct CLGatherExKernel object. | |
CLGatherExKernel (const CLGatherExKernel &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers). | |
CLGatherExKernel & | operator= (const CLGatherExKernel &)=delete |
Prevent instances of this class from being copied (As this class contains pointers). | |
CLGatherExKernel (CLGatherExKernel &&)=default | |
Construct CLGatherExKernel object by using default move constructor. | |
CLGatherExKernel & | operator= (CLGatherExKernel &&)=default |
Move assignment operator. | |
void | configure (const ICLTensor *input, const ICLTensor *indices, ICLTensor *output, int axis=0) |
Initialise the kernel's input, output and border mode. | |
void | run (const Window &window, cl::CommandQueue &queue) override |
Enqueue the OpenCL kernel to process the given window on the passed OpenCL command queue. | |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *input, const ITensorInfo *indices, const ITensorInfo *output, int axis=0) |
Static function to check if given info will lead to a valid configuration of CLGatherExKernel. | |
Class to define an interface for the gather kernel.
Definition at line 59 of file CLGatherExKernel.h.
CLGatherExKernel::CLGatherExKernel | ( | ) |
Construct CLGatherExKernel object.
Definition at line 106 of file CLGatherExKernel.cpp.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers).
|
default |
Construct CLGatherExKernel object by using default move constructor.
[in] | CLGatherExKernel | object to move |
void CLGatherExKernel::configure | ( | const ICLTensor * | input, |
const ICLTensor * | indices, | ||
ICLTensor * | output, | ||
int | axis = 0 |
||
) |
Initialise the kernel's input, output and border mode.
[in] | input | An input tensor. Data types supported: U8/QASYMM8/S32/F32. |
[in] | indices | Indices tensor. Data types supported: S32. |
[out] | output | The output tensor, Data types supported: same as input1 . |
[in] | axis | (Optional) The axis in input to gather indices from. Negative values wrap around. Defaults to 0 |
Definition at line 111 of file CLGatherExKernel.cpp.
References arm_compute::CLKernelLibraryEx::create_kernel(), and arm_compute::CLKernelLibraryEx::get().
|
default |
|
delete |
Prevent instances of this class from being copied (As this class contains pointers).
|
override |
Enqueue the OpenCL kernel to process the given window on the passed OpenCL command queue.
[in] | window | Region on which to execute the kernel. (Must be a valid region of the window returned by window()). |
[in,out] | queue | Command queue on which to enqueue the kernel. |
Definition at line 155 of file CLGatherExKernel.cpp.
Referenced by package.infer.session::inference().
|
static |
Static function to check if given info will lead to a valid configuration of CLGatherExKernel.
[in] | input | An input tensor. Data types supported: U8/QASYMM8/S32/F32. |
[in] | indices | Indices tensor. Data types supported: S32. |
[out] | output | The output tensor, Data types supported: same as input1 . |
[in] | axis | (Optional) The axis in input to gather indices from. Negative values wrap around. Defaults to 0 |
Definition at line 144 of file CLGatherExKernel.cpp.
Referenced by operator=(), and arm_compute::CLGatherEx::validate().