Compute Library
 21.05
ClExp Class Reference

Basic function to perform exponential on an src tensor. More...

#include <ClElementwiseUnary.h>

Collaboration diagram for ClExp:
[legend]

Public Member Functions

 ClExp ()=default
 Constructor. More...
 
void configure (const ClCompileContext &compile_context, const ITensorInfo *src, ITensorInfo *dst)
 Initialize the function. 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 *src, const ITensorInfo *dst)
 Static function to check if given info will lead to a valid configuration of ClExp. More...
 

Detailed Description

Basic function to perform exponential on an src tensor.

Definition at line 58 of file ClElementwiseUnary.h.

Constructor & Destructor Documentation

◆ ClExp()

ClExp ( )
default

Constructor.

Member Function Documentation

◆ configure()

void configure ( const ClCompileContext compile_context,
const ITensorInfo src,
ITensorInfo dst 
)

Initialize the function.

Parameters
[in]compile_contextThe compile context to be used.
[in]srcSource tensor info. Data types supported: F16/F32.
[out]dstDestination tensor info. Data types supported: same as src.

Definition at line 44 of file ClElementwiseUnary.cpp.

45 {
46  auto k = std::make_unique<kernels::ClElementWiseUnaryKernel>();
47  k->configure(compile_context, src, dst, ElementWiseUnary::EXP);
48  _kernel = std::move(k);
49 }
SimpleTensor< float > src
Definition: DFT.cpp:155

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

◆ validate()

Status validate ( const ITensorInfo src,
const ITensorInfo dst 
)
static

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

Parameters
[in]srcFirst source tensor info. Data types supported: F16/F32.
[in]dstDestination tensor info. Data types supported: same as src.
Returns
a status

Definition at line 51 of file ClElementwiseUnary.cpp.

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

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

Referenced by CLExpLayer::validate().


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