Compute Library
 19.08
NEExpLayer Class Reference

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

#include <NEElementwiseUnaryLayer.h>

Collaboration diagram for NEExpLayer:
[legend]

Public Member Functions

void configure (const ITensor *input, ITensor *output)
 Initialize the function. More...
 
- Public Member Functions inherited from INESimpleFunction
 INESimpleFunction ()
 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 NEExpLayer. More...
 

Detailed Description

Basic function to perform exponential on an input tensor.

Definition at line 54 of file NEElementwiseUnaryLayer.h.

Member Function Documentation

◆ configure()

void configure ( const ITensor input,
ITensor 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 NEElementwiseUnaryLayer.cpp.

45 {
46  auto k = arm_compute::support::cpp14::make_unique<NEElementwiseUnaryKernel>();
47  k->configure(ElementWiseUnary::EXP, input, output);
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 NEExpLayer.

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 NEElementwiseUnaryLayer.cpp.

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

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


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