Compute Library
 19.08
NEGather Class Reference

Basic function to run NEGatherKernel. More...

#include <NEGather.h>

Collaboration diagram for NEGather:
[legend]

Public Member Functions

void configure (const ITensor *input, const ITensor *indices, ITensor *output, int axis=0)
 Initialise the kernel's inputs and outputs. More...
 
- Public Member Functions inherited from INESimpleFunctionNoBorder
 INESimpleFunctionNoBorder ()
 Constructor. More...
 
void run () override final
 Run the kernels contained in the function. More...
 
- Public Member Functions inherited from IFunction
virtual ~IFunction ()=default
 Destructor. More...
 
virtual void prepare ()
 Prepare the function for executing. More...
 

Static Public Member Functions

static Status validate (const ITensorInfo *input, const ITensorInfo *indices, const ITensorInfo *output, int axis)
 Static function to check if given info will lead to a valid configuration of NEGatherKernel. More...
 

Detailed Description

Basic function to run NEGatherKernel.

Definition at line 36 of file NEGather.h.

Member Function Documentation

◆ configure()

void 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 1. 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 33 of file NEGather.cpp.

34 {
35  auto k = arm_compute::support::cpp14::make_unique<NEGatherKernel>();
36  k->configure(input, indices, output, axis);
37  _kernel = std::move(k);
38 }

References arm_compute::test::validation::axis.

◆ validate()

Status 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 NEGatherKernel.

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 1. 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 40 of file NEGather.cpp.

41 {
42  return NEGatherKernel::validate(input, indices, output, axis);
43 }
static Status validate(const ITensorInfo *input, const ITensorInfo *indices, const ITensorInfo *output, int axis)
Static function to check if given info will lead to a valid configuration of NEGatherKernel.

References arm_compute::test::validation::axis, and NEGatherKernel::validate().


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