24.02.1
|
Basic function to run CLReverseKernel. More...
#include <CLReverse.h>
Public Member Functions | |
void | configure (const ICLTensor *input, ICLTensor *output, const ICLTensor *axis, bool use_inverted_axis) |
Initialize the function. More... | |
void | configure (const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const ICLTensor *axis, bool use_inverted_axis) |
Initialize the function. More... | |
Public Member Functions inherited from ICLSimpleFunction | |
ICLSimpleFunction (CLRuntimeContext *ctx=nullptr) | |
Constructor. More... | |
ICLSimpleFunction (const ICLSimpleFunction &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLSimpleFunction (ICLSimpleFunction &&)=default | |
Default move constructor. More... | |
ICLSimpleFunction & | operator= (const ICLSimpleFunction &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLSimpleFunction & | operator= (ICLSimpleFunction &&)=default |
Default move assignment operator. More... | |
~ICLSimpleFunction () | |
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, bool use_inverted_axis) |
Static function to check if given info will lead to a valid configuration of CLReverseKernel. More... | |
Basic function to run CLReverseKernel.
Definition at line 37 of file CLReverse.h.
void configure | ( | const CLCompileContext & | compile_context, |
const ICLTensor * | input, | ||
ICLTensor * | output, | ||
const ICLTensor * | axis, | ||
bool | use_inverted_axis | ||
) |
Initialize the function.
[in] | compile_context | The compile context to be used. |
[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 38 of file CLReverse.cpp.
References ARM_COMPUTE_LOG_PARAMS, and arm_compute::test::validation::input.
void configure | ( | const ICLTensor * | input, |
ICLTensor * | output, | ||
const ICLTensor * | axis, | ||
bool | use_inverted_axis | ||
) |
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 33 of file CLReverse.cpp.
References CLKernelLibrary::get(), and arm_compute::test::validation::input.
Referenced by CLFFTConvolutionLayer::configure(), and CLDirectDeconvolutionLayer::configure().
|
static |
Static function to check if given info will lead to a valid configuration of CLReverseKernel.
[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 50 of file CLReverse.cpp.
References arm_compute::test::validation::input, and CLReverseKernel::validate().