ONE - On-device Neural Engine
|
#include <NEGatherKernelEx.h>
Public Member Functions | |
NEGatherKernelEx () | |
NEGatherKernelEx (const NEGatherKernelEx &)=delete | |
NEGatherKernelEx & | operator= (const NEGatherKernelEx &)=delete |
NEGatherKernelEx (NEGatherKernelEx &&)=default | |
NEGatherKernelEx & | operator= (NEGatherKernelEx &&)=default |
~NEGatherKernelEx ()=default | |
const char * | name () const override |
void | configure (const ITensor *input, const ITensor *indices, ITensor *output, int axis=0) |
void | run (const Window &window, const ThreadInfo &info) override |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *input, const ITensorInfo *indices, const ITensorInfo *output, int axis) |
Kernel to perform other operation on NEON
Definition at line 52 of file NEGatherKernelEx.h.
arm_compute::NEGatherKernelEx::NEGatherKernelEx | ( | ) |
Default constructor.
Definition at line 76 of file NEGatherKernelEx.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 detructor
void arm_compute::NEGatherKernelEx::configure | ( | const ITensor * | input, |
const ITensor * | indices, | ||
ITensor * | output, | ||
int | axis = 0 |
||
) |
Initialise the kernel's inputs and outputs
[in] | input | Source tensor. Supported tensor rank: up to 4. Data type supported: U8/S8/QASYMM8/U16/S16/U32/S32/F16/F32 |
[in] | indices | Indices tensor. Supported tensor rank: up to 3. Must be one of the following type: U32/S32. Each value Must be in range [0, input.shape[axis ]) |
[out] | output | Destination tensor. Data type supported: Same as input |
[in] | axis | (Optional) The axis in input to gather indices from. Negative values wrap around. Defaults to 0 |
Definition at line 167 of file NEGatherKernelEx.cpp.
References arm_compute::misc::shape_calculator::compute_gather_shape_ex(), and output_shape.
|
inlineoverride |
Name of the kernel
Definition at line 72 of file NEGatherKernelEx.h.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers).
|
default |
Allow instances of this class to be moved.
|
override |
Definition at line 264 of file NEGatherKernelEx.cpp.
References info.
Referenced by package.infer.session::inference().
|
static |
Static function to check if given info will lead to a valid configuration of NEGatherKernelEx
[in] | input | Source tensor info. Supported tensor rank: up to 4. Data type supported: U8/S8/QASYMM8/U16/S16/U32/S32/F16/F32 |
[in] | indices | Indices tensor info. Supported tensor rank: up to 3. Must be one of the following type: U32/S32. Each value Must be in range [0, input.shape[axis ]) |
[in] | output | Destination tensor info. Data type supported: Same as input |
[in] | axis | (Optional) The axis in input to gather indices from. Negative values wrap around. Defaults to 0 |
Definition at line 231 of file NEGatherKernelEx.cpp.
References arm_compute::misc::shape_calculator::compute_gather_shape_ex(), and output_shape.
Referenced by arm_compute::NEGatherEx::validate().