Compute Library
 19.08
CLExpLayer Class Reference

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

#include <CLElementWiseUnaryLayer.h>

Collaboration diagram for CLExpLayer:
[legend]

Public Member Functions

void configure (const ICLTensor *input, ICLTensor *output)
 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)
 Static function to check if given info will lead to a valid configuration of CLExpLayer. More...
 

Detailed Description

Basic function to perform exponential on an input tensor.

Definition at line 54 of file CLElementWiseUnaryLayer.h.

Member Function Documentation

◆ configure()

void configure ( const ICLTensor input,
ICLTensor output 
)

Initialize the function.

Parameters
[in]inputInput tensor. Data types supported: F16/F32.
[out]outputOutput tensor. Data types supported: same as input.

Definition at line 44 of file CLElementWiseUnaryLayer.cpp.

45 {
46  auto k = arm_compute::support::cpp14::make_unique<CLElementWiseUnaryLayerKernel>();
47  k->configure(input, output, ElementWiseUnary::EXP);
48  _kernel = std::move(k);
49 }

References arm_compute::EXP.

◆ validate()

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

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

Parameters
[in]inputFirst tensor input info. Data types supported: F16/F32.
[in]outputOutput tensor info. Data types supported: Same as input.
Returns
a status

Definition at line 50 of file CLElementWiseUnaryLayer.cpp.

51 {
53 }
static Status validate(const ITensorInfo *input, const ITensorInfo *output, const ElementWiseUnary &op)
Static function to check if given info will lead to a valid configuration of CLElementWiseUnaryLayerK...

References arm_compute::EXP, and CLElementWiseUnaryLayerKernel::validate().


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