ONE - On-device Neural Engine
|
#include <NEOneHot.h>
Public Member Functions | |
void | configure (const ITensor *indices, const ITensor *depth, const ITensor *on_value, const ITensor *off_value, ITensor *output, int axis=-1) |
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) |
Basic function to run NEOneHotKernel
Definition at line 51 of file NEOneHot.h.
void arm_compute::NEOneHot::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 46 of file NEOneHot.cpp.
|
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 53 of file NEOneHot.cpp.
References arm_compute::NEOneHotKernel::validate().