Compute Library
 19.08
CLRsqrtLayer Class Reference

Basic function to perform inverse square root on an input tensor. More...

#include <CLElementWiseUnaryLayer.h>

Collaboration diagram for CLRsqrtLayer:
[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 CLRsqrtLayer. More...
 

Detailed Description

Basic function to perform inverse square root on an input tensor.

Definition at line 34 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 33 of file CLElementWiseUnaryLayer.cpp.

34 {
35  auto k = arm_compute::support::cpp14::make_unique<CLElementWiseUnaryLayerKernel>();
36  k->configure(input, output, ElementWiseUnary::RSQRT);
37  _kernel = std::move(k);
38 }

References arm_compute::RSQRT.

◆ validate()

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

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

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 39 of file CLElementWiseUnaryLayer.cpp.

40 {
42 }
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::RSQRT, and CLElementWiseUnaryLayerKernel::validate().


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