|
ONE - On-device Neural Engine
|
#include <CLOneHot.h>

Public Member Functions | |
| CLOneHot () | |
| CLOneHot (const CLOneHot &)=delete | |
| CLOneHot (CLOneHot &&)=default | |
| CLOneHot & | operator= (const CLOneHot &)=delete |
| CLOneHot & | operator= (CLOneHot &&)=default |
| void | configure (const ICLTensor *indices, const ICLTensor *on_value, const ICLTensor *off_value, ICLTensor *output, int depth, int axis=-1) |
| void | configure (const ICLTensor *indices, const ICLTensor *on_value, ICLTensor *output, PixelValue off_value, int depth, int axis=-1) |
| void | run () override |
Static Public Member Functions | |
| static Status | validate (const ITensorInfo *indices, const ITensorInfo *on_value, const ITensorInfo *off_value, const ITensorInfo *output, int depth, int axis=-1) |
Basic function to run CLOneHotKernel
Definition at line 51 of file CLOneHot.h.
| arm_compute::CLOneHot::CLOneHot | ( | ) |
Constructor
Definition at line 47 of file CLOneHot.cpp.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor
| void arm_compute::CLOneHot::configure | ( | const ICLTensor * | indices, |
| const ICLTensor * | on_value, | ||
| const ICLTensor * | off_value, | ||
| ICLTensor * | output, | ||
| int | depth, | ||
| 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] | 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] | depth | The depth of the one hot dimension. |
| [in] | axis | (Optional) The axis to fill. Negative values wrap around. Defaults to -1. value must be in range [-indices.rank , indices.rank) |
Definition at line 48 of file CLOneHot.cpp.
References arm_compute::CLOneHotKernel::configure().
| void arm_compute::CLOneHot::configure | ( | const ICLTensor * | indices, |
| const ICLTensor * | on_value, | ||
| ICLTensor * | output, | ||
| PixelValue | off_value, | ||
| int | depth, | ||
| int | axis = -1 |
||
| ) |
Initialise the kernel's inputs and outputs with off_value being constant
| [in] | indices | Indices tensor. 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 |
| [out] | output | Destination tensor. Data type supported: Same as on_value |
| [in] | off_value | The PixelValue for off value. Data type supported: Same as on_value |
| [in] | depth | The depth of the one hot dimension. |
| [in] | axis | (Optional) The axis to fill. Negative values wrap around. Defaults to -1. value must be in range [-indices.rank , indices.rank) |
Definition at line 53 of file CLOneHot.cpp.
References arm_compute::CLOneHotKernel::configure(), and arm_compute::CLMemsetKernel::configure().
Default move assignment operator
References validate().
Prevent instances of this class from being copied (As this class contains pointers)
|
override |
Definition at line 66 of file CLOneHot.cpp.
|
static |
Static function to check if given info will lead to a valid configuration of CLOneHotKernel
| [in] | indices | Indices tensor. 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 |
| [in] | output | Destination tensor. Data type supported: Same as on_value |
| [in] | depth | The depth of the one hot dimension. |
| [in] | axis | (Optional) The axis to fill. Negative values wrap around. Defaults to -1. value must be in range [-indices.rank , indices.rank) |
Definition at line 60 of file CLOneHot.cpp.
References arm_compute::CLOneHotKernel::validate().
Referenced by operator=().