Compute Library
 19.08
CLReverse Class Reference

Basic function to run CLReverseKernel. More...

#include <CLReverse.h>

Collaboration diagram for CLReverse:
[legend]

Public Member Functions

void configure (const ICLTensor *input, ICLTensor *output, const ICLTensor *axis)
 Initialize the function. More...
 
- Public Member Functions inherited from ICLSimpleFunction
 ICLSimpleFunction ()
 Default 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 *output, const ITensorInfo *axis)
 Static function to check if given info will lead to a valid configuration of CLReverseKernel. More...
 

Detailed Description

Basic function to run CLReverseKernel.

Definition at line 34 of file CLReverse.h.

Member Function Documentation

◆ configure()

void configure ( const ICLTensor input,
ICLTensor output,
const ICLTensor axis 
)

Initialize the function.

Parameters
[in]inputInput tensor. Data types supported: U8/S8/QASYMM8/U16/S16/F16/U32/S32/F32
[out]outputOutput tensor. Data type supported: Same as input
[in]axisAxis tensor. Contains the indices of the dimensions to reverse. Data type supported: U32

Definition at line 32 of file CLReverse.cpp.

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

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

Referenced by CLFFTConvolutionLayer::configure(), and CLDirectDeconvolutionLayer::configure().

◆ validate()

Status validate ( const ITensorInfo input,
const ITensorInfo output,
const ITensorInfo axis 
)
static

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

Parameters
[in]inputInput tensor info. Data types supported: U8/S8/QASYMM8/U16/S16/F16/U32/S32/F32
[in]outputOutput tensor info. Data type supported: Same as input
[in]axisAxis tensor info. Contains the indices of the dimensions to reverse. Data type supported: U32
Returns
a status

Definition at line 39 of file CLReverse.cpp.

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

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


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