ONE - On-device Neural Engine
|
#include <NEEmbeddingLookupKernel.h>
Public Member Functions | |
const char * | name () const override |
NEEmbeddingLookupKernel () | |
NEEmbeddingLookupKernel (const NEEmbeddingLookupKernel &)=delete | |
NEEmbeddingLookupKernel & | operator= (const NEEmbeddingLookupKernel &)=delete |
NEEmbeddingLookupKernel (NEEmbeddingLookupKernel &&)=default | |
NEEmbeddingLookupKernel & | operator= (NEEmbeddingLookupKernel &&)=default |
void | configure (const ITensor *input, ITensor *output, const ITensor *lookups) |
void | run (const Window &window, const ThreadInfo &info) override |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *input, const ITensorInfo *output, const ITensorInfo *lookups) |
NEON kernel to perform EmbeddingLookup operation
Definition at line 52 of file NEEmbeddingLookupKernel.h.
NEEmbeddingLookupKernel::NEEmbeddingLookupKernel | ( | ) |
Default constructor
Definition at line 55 of file NEEmbeddingLookupKernel.cpp.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers).
|
default |
Allow instances of this class to be moved
void NEEmbeddingLookupKernel::configure | ( | const ITensor * | input, |
ITensor * | output, | ||
const ITensor * | lookups | ||
) |
Initialize the kernel's input, output.
[in] | input | Source tensor. Data types supported: U8/S8/QASYMM8/U16/S16/F16/U32/S32/F32. |
[out] | output | Destination tensor. Data types supported: same as input . |
[in] | lookups | Lookups are 1D tensor that values are indices into the first dimension of input. |
Definition at line 60 of file NEEmbeddingLookupKernel.cpp.
References validate().
|
inlineoverride |
Definition at line 55 of file NEEmbeddingLookupKernel.h.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers).
|
default |
Allow instances of this class to be moved
References validate().
|
override |
Definition at line 107 of file NEEmbeddingLookupKernel.cpp.
References info.
Referenced by package.infer.session::inference().
|
static |
Static function to check if given info will lead to a valid configuration of NEEmbeddingLookupKernel
[in] | input | Source tensor. Data types supported: U8/S8/QASYMM8/U16/S16/F16/U32/S32/F32. |
[in] | output | Destination tensor. Data types supported: same as input . |
[in] | lookups | Lookups info. Data types supported: S32. |
Definition at line 79 of file NEEmbeddingLookupKernel.cpp.
Referenced by configure(), and operator=().