Compute Library
18.05
|
Basic function to perform a L2 normalization on a given axis. More...
#include <CLL2NormalizeLayer.h>
Public Member Functions | |
CLL2NormalizeLayer (std::shared_ptr< IMemoryManager > memory_manager=nullptr) | |
Constructor. More... | |
void | configure (ICLTensor *input, ICLTensor *output, unsigned int axis, float epsilon=1e-12) |
Set the input and output tensors. More... | |
void | run () override |
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, unsigned int axis, float epsilon=1e-12) |
Static function to check if given info will lead to a valid configuration of CLL2NormalizeLayer. More... | |
Basic function to perform a L2 normalization on a given axis.
This function runs the following kernels:
Definition at line 48 of file CLL2NormalizeLayer.h.
CLL2NormalizeLayer | ( | std::shared_ptr< IMemoryManager > | memory_manager = nullptr | ) |
Constructor.
Set the input and output tensors.
[in] | input | Source tensor. Data types supported: F32. Data layouts supported: NCHW. |
[out] | output | Destination tensor. Data types and data layouts supported: Same as input . |
[in] | axis | Axis along which to reduce. Supported reduction axis : 0 |
[in] | epsilon | (Optional) Lower bound value for the normalization. |
|
overridevirtual |
Run the kernels contained in the function.
For NEON kernels:
For OpenCL kernels:
Implements IFunction.
|
static |
Static function to check if given info will lead to a valid configuration of CLL2NormalizeLayer.
[in] | input | Source tensor info. Data types supported: F32. Data layouts supported: NCHW. |
[in] | output | Destination tensor info. Data types and data layouts supported: Same as input . |
[in] | axis | Axis along which to reduce. Supported reduction axis : 0 |
[in] | epsilon | (Optional) Lower bound value for the normalization. |
Referenced by arm_compute::test::validation::DATA_TEST_CASE().