24.02.1
|
Basic function to run NEGatherKernel. More...
#include <NEGather.h>
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 (IRuntimeContext *ctx=nullptr) | |
Constructor. More... | |
INESimpleFunctionNoBorder (const INESimpleFunctionNoBorder &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
INESimpleFunctionNoBorder (INESimpleFunctionNoBorder &&)=default | |
Default move constructor. More... | |
INESimpleFunctionNoBorder & | operator= (const INESimpleFunctionNoBorder &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
INESimpleFunctionNoBorder & | operator= (INESimpleFunctionNoBorder &&)=default |
Default move assignment operator. More... | |
~INESimpleFunctionNoBorder () | |
Default destructor. 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. More... | |
Basic function to run NEGatherKernel.
Definition at line 38 of file NEGather.h.
Initialise the kernel's inputs and outputs.
Valid data layouts:
Valid data type configurations:
src | dst |
---|---|
All | All |
[in] | input | Source tensor. Supported tensor rank: up to 4. Data type supported: All |
[in] | indices | Indices 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 ]), otherwise the result will become unpredictable. |
[out] | output | Destination 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.
References ARM_COMPUTE_LOG_PARAMS, and arm_compute::test::validation::input.
|
static |
Static function to check if given info will lead to a valid configuration.
Similar to NEGather::configure()
Definition at line 41 of file NEGather.cpp.
References arm_compute::test::validation::input, and NEGatherKernel::validate().