24.04
|
Basic function to run NEReverseKernel. More...
#include <NEReverse.h>
Public Member Functions | |
void | configure (const ITensor *input, ITensor *output, const ITensor *axis, const bool use_inverted_axis=false) |
Initialize the function. 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 *output, const ITensorInfo *axis, const bool use_inverted_axis=false) |
Static function to check if given info will lead to a valid configuration of NEReverseKernel. More... | |
Basic function to run NEReverseKernel.
Definition at line 36 of file NEReverse.h.
void configure | ( | const ITensor * | input, |
ITensor * | output, | ||
const ITensor * | axis, | ||
const bool | use_inverted_axis = false |
||
) |
Initialize the function.
Valid data layouts:
Valid data type configurations:
src0 | src1 | dst |
---|---|---|
All | U32, S32 | All |
[in] | input | Input tensor. Data types supported: All |
[out] | output | Output tensor. Data type supported: Same as input |
[in] | axis | Axis tensor. Contains the indices of the dimensions to reverse. Data type supported: U32/S32 |
[in] | use_inverted_axis | Reverse ACL axis indices convention, if true, (inverted)axis = (tensor_rank - 1) - axis |
Definition at line 31 of file NEReverse.cpp.
References ARM_COMPUTE_LOG_PARAMS, and arm_compute::test::validation::input.
Referenced by NEFFTConvolutionLayer::configure(), and NEDeconvolutionLayer::configure().
|
static |
Static function to check if given info will lead to a valid configuration of NEReverseKernel.
[in] | input | Input tensor info. Data types supported: All |
[in] | output | Output tensor info. Data type supported: Same as input |
[in] | axis | Axis tensor info. Contains the indices of the dimensions to reverse. Data type supported: U32/S32 |
[in] | use_inverted_axis | Reverse ACL axis indices convention, if true, (inverted)axis = (tensor_rank - 1) - axis |
Definition at line 40 of file NEReverse.cpp.
References arm_compute::test::validation::input, and NEReverseKernel::validate().