Compute Library
 21.05
ClReshape Class Reference

Basic function to run kernels::ClReshapeKernel. More...

#include <ClReshape.h>

Collaboration diagram for ClReshape:
[legend]

Public Member Functions

 ClReshape ()=default
 Constructor. More...
 
void configure (const CLCompileContext &compile_context, const ITensorInfo *input, ITensorInfo *output)
 Initialise the kernel's inputs and outputs. More...
 
- Public Member Functions inherited from ICLOperator
 ICLOperator (IRuntimeContext *ctx=nullptr)
 Constructor. More...
 
 ICLOperator (const ICLOperator &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
 ICLOperator (ICLOperator &&)=default
 Default move constructor. More...
 
ICLOperatoroperator= (const ICLOperator &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
ICLOperatoroperator= (ICLOperator &&)=default
 Default move assignment operator. More...
 
void run (ITensorPack &tensors) override
 Run the kernels contained in the function. More...
 
void prepare (ITensorPack &constants) override
 Prepare the function for executing. More...
 
MemoryRequirements workspace () const override
 Return the memory requirements required by the workspace. More...
 
- Public Member Functions inherited from IOperator
virtual ~IOperator ()=default
 Destructor. More...
 

Static Public Member Functions

static Status validate (const ITensorInfo *input, const ITensorInfo *output)
 Static function to check if given info will lead to a valid configuration of kernels::ClReshapeKernel. More...
 

Detailed Description

Basic function to run kernels::ClReshapeKernel.

Definition at line 35 of file ClReshape.h.

Constructor & Destructor Documentation

◆ ClReshape()

ClReshape ( )
default

Constructor.

Member Function Documentation

◆ configure()

void configure ( const CLCompileContext compile_context,
const ITensorInfo input,
ITensorInfo output 
)

Initialise the kernel's inputs and outputs.

Parameters
[in]compile_contextThe compile context to be used.
[in]inputInput tensor info. Data type supported: All
[out]outputOutput info. Data type supported: Same as input

Definition at line 33 of file ClReshape.cpp.

34 {
35  auto k = std::make_unique<kernels::ClReshapeKernel>();
36  k->configure(compile_context, src, dst);
37  _kernel = std::move(k);
38 }
SimpleTensor< float > src
Definition: DFT.cpp:155

References arm_compute::test::validation::dst, and arm_compute::test::validation::src.

◆ validate()

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

Static function to check if given info will lead to a valid configuration of kernels::ClReshapeKernel.

Parameters
[in]inputInput tensor info. Data type supported: All
[in]outputOutput tensor info. Data type supported: Same as input
Returns
a status

Definition at line 40 of file ClReshape.cpp.

41 {
43 }
static Status validate(const ITensorInfo *src, const ITensorInfo *dst)
Static function to check if given info will lead to a valid configuration of ClReshapeKernel.
SimpleTensor< float > src
Definition: DFT.cpp:155

References arm_compute::test::validation::dst, arm_compute::test::validation::src, and ClReshapeKernel::validate().

Referenced by CLReshapeLayer::validate().


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