ONE - On-device Neural Engine
Loading...
Searching...
No Matches
arm_compute::NEGatherEx Class Reference

#include <NEGatherEx.h>

Collaboration diagram for arm_compute::NEGatherEx:

Public Member Functions

void configure (const ITensor *input, const ITensor *indices, ITensor *output, int axis=0)
 

Static Public Member Functions

static Status validate (const ITensorInfo *input, const ITensorInfo *indices, const ITensorInfo *output, int axis)
 

Detailed Description

Basic function to run NEGatherKernelEx

Definition at line 53 of file NEGatherEx.h.

Member Function Documentation

◆ configure()

void arm_compute::NEGatherEx::configure ( const ITensor *  input,
const ITensor *  indices,
ITensor *  output,
int  axis = 0 
)

Initialise the kernel's inputs and outputs

Parameters
[in]inputSource tensor. Supported tensor rank: up to 4. Data type supported: U8/S8/QASYMM8/U16/S16/U32/S32/F16/F32
[in]indicesIndices 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]outputDestination tensor. Data type supported: Same as input
[in]axis(Optional) The axis in input to gather indices from. Defaults to 0

Definition at line 49 of file NEGatherEx.cpp.

50{
51 auto k = std::make_unique<NEGatherKernelEx>();
52 k->configure(input, indices, output, axis);
53 _kernel = std::move(k);
54}

◆ validate()

Status arm_compute::NEGatherEx::validate ( const ITensorInfo *  input,
const ITensorInfo *  indices,
const ITensorInfo *  output,
int  axis 
)
static

Static function to check if given info will lead to a valid configuration of NEGatherKernelEx

Parameters
[in]inputSource tensor info. Supported tensor rank: up to 4. Data type supported: U8/S8/QASYMM8/U16/S16/U32/S32/F16/F32
[in]indicesIndices tensor info. Supported tensor rank: up to 3. Must be one of the following types: U32/S32. Each value Must be in range [0, input.shape[axis])
[in]outputDestination tensor info. Data type supported: Same as input
[in]axis(Optional) The axis in input to gather indices from. Defaults to 0
Returns
a status

Definition at line 56 of file NEGatherEx.cpp.

58{
59 return NEGatherKernelEx::validate(input, indices, output, axis);
60}
static Status validate(const ITensorInfo *input, const ITensorInfo *indices, const ITensorInfo *output, int axis)

References arm_compute::NEGatherKernelEx::validate().


The documentation for this class was generated from the following files: