ONE - On-device Neural Engine
|
#include <NEOneHotKernel.h>
Public Member Functions | |
NEOneHotKernel () | |
NEOneHotKernel (const NEOneHotKernel &)=delete | |
NEOneHotKernel & | operator= (const NEOneHotKernel &)=delete |
NEOneHotKernel (NEOneHotKernel &&)=default | |
NEOneHotKernel & | operator= (NEOneHotKernel &&)=default |
~NEOneHotKernel ()=default | |
const char * | name () const override |
void | configure (const ITensor *indices, const ITensor *depth, const ITensor *on_value, const ITensor *off_value, ITensor *output, int axis=-1) |
void | run (const Window &window, const ThreadInfo &info) override |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *indices, const ITensorInfo *depth, const ITensorInfo *on_value, const ITensorInfo *off_value, const ITensorInfo *output, int axis=-1) |
Kernel to perform other operation on NEON
Definition at line 49 of file NEOneHotKernel.h.
arm_compute::NEOneHotKernel::NEOneHotKernel | ( | ) |
Default constructor.
Definition at line 107 of file NEOneHotKernel.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::NEOneHotKernel::configure | ( | const ITensor * | indices, |
const ITensor * | depth, | ||
const ITensor * | on_value, | ||
const ITensor * | off_value, | ||
ITensor * | output, | ||
int | axis = -1 |
||
) |
Initialise the kernel's inputs and outputs
[in] | indices | Indices tensor. Supported tensor rank: up to 3. Must be one of the following types: U32/S32 |
[in] | depth | The tensor for depth of the one hot dimension. Supported tensor rank: up to 3. Must be one of the following types: U32/S32 |
[in] | on_value | On value tensor. Supported tensor rank: only 1. Data type supported: U8/S8/U16/S16/F16/U32/S32/F32 |
[in] | off_value | Off value tensor. Supported tensor rank: only 1. Data type supported: Same as on_value |
[out] | output | Destination tensor. Data type supported: Same as on_value |
[in] | axis | (Optional) The axis to fill. Negative values wrap around. Defaults to -1. The value must be in range [-indices.rank , indices.rank) |
Definition at line 167 of file NEOneHotKernel.cpp.
|
inlineoverride |
Name of the kernel
Definition at line 68 of file NEOneHotKernel.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 226 of file NEOneHotKernel.cpp.
References info.
Referenced by package.infer.session::inference().
|
static |
Static function to check if given info will lead to a valid configuration of NEOneHotKernel
[in] | indices | Indices tensor info. Supported tensor rank: up to 3. Must be one of the following types: U32/S32 |
[in] | depth | The tensor info for depth of the one hot dimension. Supported tensor rank: up to 3. Must be one of the following types: U32/S32 |
[in] | on_value | On value tensor info. Supported tensor rank: only 1. Data type supported: U8/S8/U16/S16/F16/U32/S32/F32 |
[in] | off_value | Off value tensor info. Supported tensor rank: only 1. Data type supported: Same as on_value |
[out] | output | Destination tensor info. Data type supported: Same as on_value |
[in] | axis | (Optional) The axis to fill. Negative values wrap around. Defaults to -1. The value must be in range [-indices.rank , indices.rank) |
Definition at line 217 of file NEOneHotKernel.cpp.
Referenced by arm_compute::NEOneHot::validate().